pdfHTML 2.1.6 API
iText.Html2pdf.Css.Apply.Util.BorderStyleApplierUtil Class Reference

Utilities class to apply border styles. More...

Static Public Member Functions

static void  ApplyBorders (IDictionary< String, String > cssProps, ProcessorContext context, IPropertyContainer element)
  Applies borders to an element. More...
 
static Border[]  GetBordersArray (IDictionary< String, String > styles, float em, float rem)
  Gets the array that defines the borders. More...
 
static Border  GetCertainBorder (String borderWidth, String borderStyle, String borderColor, float em, float rem)
  Creates a iText.Layout.Borders.Border instance based on specific properties. More...
 
static BorderRadius[]  GetBorderRadiiArray (IDictionary< String, String > styles, float em, float rem)
  Gets the array that defines the borders. More...
 
static UnitValue  GetBorderRadius (IDictionary< String, String > styles, float em, float rem)
  Gets the array that defines the borders. More...
 

Detailed Description

Utilities class to apply border styles.

Member Function Documentation

◆ ApplyBorders()

static void iText.Html2pdf.Css.Apply.Util.BorderStyleApplierUtil.ApplyBorders ( IDictionary< String, String >  cssProps,
ProcessorContext  context,
IPropertyContainer  element 
)
inlinestatic

Applies borders to an element.

Parameters
cssProps the CSS properties
context the Processor context
element the element

◆ GetBorderRadiiArray()

static BorderRadius [] iText.Html2pdf.Css.Apply.Util.BorderStyleApplierUtil.GetBorderRadiiArray ( IDictionary< String, String >  styles,
float  em,
float  rem 
)
inlinestatic

Gets the array that defines the borders.

Parameters
styles the styles mapping
em the em value
rem the root em value
Returns
the borders array

◆ GetBorderRadius()

static UnitValue iText.Html2pdf.Css.Apply.Util.BorderStyleApplierUtil.GetBorderRadius ( IDictionary< String, String >  styles,
float  em,
float  rem 
)
inlinestatic

Gets the array that defines the borders.

Parameters
styles the styles mapping
em the em value
rem the root em value
Returns
the borders array

◆ GetBordersArray()

static Border [] iText.Html2pdf.Css.Apply.Util.BorderStyleApplierUtil.GetBordersArray ( IDictionary< String, String >  styles,
float  em,
float  rem 
)
inlinestatic

Gets the array that defines the borders.

Parameters
styles the styles mapping
em the em value
rem the root em value
Returns
the borders array

◆ GetCertainBorder()

static Border iText.Html2pdf.Css.Apply.Util.BorderStyleApplierUtil.GetCertainBorder ( String  borderWidth,
String  borderStyle,
String  borderColor,
float  em,
float  rem 
)
inlinestatic

Creates a iText.Layout.Borders.Border instance based on specific properties.

Parameters
borderWidth the border width
borderStyle the border style
borderColor the border color
em the em value
rem the root em value
Returns
the border