Table of Contents

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

parentNode INode

the parent node

marginBoxName string

the margin box name

Fields

PAGE_MARGIN_BOX_TAG

The Constant PAGE_MARGIN_BOX_TAG.

public const string PAGE_MARGIN_BOX_TAG = "_064ef03_page-margin-box"

Field Value

string

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

IList<IDictionary<string, string>>

GetAttribute(string)

public virtual string GetAttribute(string key)

Parameters

key string

Returns

string

GetAttributes()

public virtual IAttributes GetAttributes()

Returns

IAttributes

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

string

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

Rectangle

the Rectangle defining position and dimensions of the margin box content area

Name()

public virtual string Name()

Returns

string

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 Rectangle

the 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)

Parameters

pageMarginBoxRectangle Rectangle

the Rectangle defining position and dimensions of the margin box content area