iText.Html2pdf.Css.Apply.ICssApplier implementation for page margin box containers. More...
|
static float[] |
ParseBoxProps (IDictionary< String, String > styles, float em, float rem, float[] defaultValues, Rectangle containingBlock, String topPropName, String rightPropName, String bottomPropName, String leftPropName) |
|
Parses the page and margin boxes properties (like margins, paddings, etc). More...
|
|
iText.Html2pdf.Css.Apply.ICssApplier implementation for page margin box containers.
◆ Apply()
virtual void iText.Html2pdf.Css.Apply.Impl.PageMarginBoxCssApplier.Apply |
( |
ProcessorContext |
context, |
|
|
IStylesContainer |
stylesContainer, |
|
|
ITagWorker |
tagWorker |
|
) |
|
|
|
inlinevirtual |
Applies styles to an element.
-
Parameters
-
context |
the processor context |
stylesContainer |
the styles |
tagWorker |
the tag worker for the element |
Implements iText.Html2pdf.Css.Apply.ICssApplier.
◆ ParseBoxProps()
static float [] iText.Html2pdf.Css.Apply.Impl.PageMarginBoxCssApplier.ParseBoxProps |
( |
IDictionary< String, String > |
styles, |
|
|
float |
em, |
|
|
float |
rem, |
|
|
float[] |
defaultValues, |
|
|
Rectangle |
containingBlock, |
|
|
String |
topPropName, |
|
|
String |
rightPropName, |
|
|
String |
bottomPropName, |
|
|
String |
leftPropName |
|
) |
|
|
|
inlinestatic |
Parses the page and margin boxes properties (like margins, paddings, etc).
-
Parameters
-
styles |
a System.Collections.IDictionary containing the styles |
em |
a measurement expressed in em |
rem |
a measurement expressed in rem (root em) |
defaultValues |
the default values |
containingBlock |
the containing block |
topPropName |
the top prop name |
rightPropName |
the right prop name |
bottomPropName |
the bottom prop name |
leftPropName |
the left prop name |
-
Returns
-
an array with a top, right, bottom, and top float value