Class PageMarginBoxContextNode
- Namespace
- iText.StyledXmlParser.Css.Page
- Assembly
- itext.styledxmlparser.dll
CssContextNode implementation for page margin box contexts.
public class PageMarginBoxContextNode : CssContextNode, ICustomElementNode, IElementNode, INode, IStylesContainer
- Inheritance
-
PageMarginBoxContextNode
- Implements
- Inherited Members
Constructors
PageMarginBoxContextNode(INode, string)
Creates a new PageMarginBoxContextNode instance.
public PageMarginBoxContextNode(INode parentNode, string marginBoxName)
Parameters
Fields
PAGE_MARGIN_BOX_TAG
The Constant PAGE_MARGIN_BOX_TAG.
public const string PAGE_MARGIN_BOX_TAG = "_064ef03_page-margin-box"
Field Value
Methods
AddAdditionalHtmlStyles(IDictionary<string, string>)
public virtual void AddAdditionalHtmlStyles(IDictionary<string, string> styles)
Parameters
styles
IDictionary<string, string>
GetAdditionalHtmlStyles()
public virtual IList<IDictionary<string, string>> GetAdditionalHtmlStyles()
Returns
GetAttribute(string)
public virtual string GetAttribute(string key)
Parameters
key
string
Returns
GetAttributes()
public virtual IAttributes GetAttributes()
Returns
GetContainingBlockForMarginBox()
public virtual Rectangle GetContainingBlockForMarginBox()
Returns
- Rectangle
the Rectangle which is used as a reference for some margin box relative properties calculations.
GetLang()
public virtual string GetLang()
Returns
GetMarginBoxName()
Gets the margin box name.
public virtual string GetMarginBoxName()
Returns
- string
the margin box name
GetPageMarginBoxRectangle()
Gets the rectangle in which page margin box contents should be shown.
public virtual Rectangle GetPageMarginBoxRectangle()
Returns
Name()
public virtual string Name()
Returns
SetContainingBlockForMarginBox(Rectangle)
Sets the containing block rectangle for the margin box, which is used for calculating some of the margin box properties relative values.
public virtual void SetContainingBlockForMarginBox(Rectangle containingBlockForMarginBox)
Parameters
containingBlockForMarginBox
Rectanglethe Rectangle which is used as a reference for some margin box relative properties calculations.
SetPageMarginBoxRectangle(Rectangle)
Sets the rectangle in which page margin box contents are shown.
public virtual void SetPageMarginBoxRectangle(Rectangle pageMarginBoxRectangle)