iText 7 7.1.8 API
iText.StyledXmlParser.Css.Page.PageMarginBoxContextNode Class Reference

iText.StyledXmlParser.Css.CssContextNode implementation for page margin box contexts. More...

Inheritance diagram for iText.StyledXmlParser.Css.Page.PageMarginBoxContextNode:
iText.StyledXmlParser.Css.CssContextNode iText.StyledXmlParser.Node.INode iText.StyledXmlParser.Node.IStylesContainer

Public Member Functions

  PageMarginBoxContextNode (INode parentNode, String marginBoxName)
  Creates a new PageMarginBoxContextNode instance. More...
 
virtual String  GetMarginBoxName ()
  Gets the margin box name. More...
 
virtual void  SetPageMarginBoxRectangle (Rectangle pageMarginBoxRectangle)
  Sets the rectangle in which page margin box contents are shown. More...
 
virtual Rectangle  GetPageMarginBoxRectangle ()
  Gets the rectangle in which page margin box contents should be shown. More...
 
virtual void  SetContainingBlockForMarginBox (Rectangle containingBlockForMarginBox)
  Sets the containing block rectangle for the margin box, which is used for calculating some of the margin box properties relative values. More...
 
virtual Rectangle  GetContainingBlockForMarginBox ()
 
- Public Member Functions inherited from iText.StyledXmlParser.Css.CssContextNode
  CssContextNode (INode parentNode)
  Creates a new CssContextNode instance. More...
 
virtual IList< INode ChildNodes ()
  Gets the child nodes. More...
 
virtual void  AddChild (INode node)
  Adds a child node. More...
 
virtual INode  ParentNode ()
  Gets the parent node. More...
 
virtual void  SetStyles (IDictionary< String, String > stringStringMap)
  Sets the styles. More...
 
virtual IDictionary< String, String >  GetStyles ()
  Gets the styles. More...
 

Static Public Attributes

const String  PAGE_MARGIN_BOX_TAG = "_064ef03_page-margin-box"
  The Constant PAGE_MARGIN_BOX_TAG. More...
 

Detailed Description

iText.StyledXmlParser.Css.CssContextNode implementation for page margin box contexts.

Constructor & Destructor Documentation

◆ PageMarginBoxContextNode()

iText.StyledXmlParser.Css.Page.PageMarginBoxContextNode.PageMarginBoxContextNode ( INode  parentNode,
String  marginBoxName 
)
inline

Creates a new PageMarginBoxContextNode instance.

Parameters
parentNode the parent node
marginBoxName the margin box name

Member Function Documentation

◆ GetContainingBlockForMarginBox()

virtual Rectangle iText.StyledXmlParser.Css.Page.PageMarginBoxContextNode.GetContainingBlockForMarginBox ( )
inlinevirtual
Returns
the iText.Kernel.Geom.Rectangle which is used as a reference for some margin box relative properties calculations.

◆ GetMarginBoxName()

virtual String iText.StyledXmlParser.Css.Page.PageMarginBoxContextNode.GetMarginBoxName ( )
inlinevirtual

Gets the margin box name.

Returns
the margin box name

◆ GetPageMarginBoxRectangle()

virtual Rectangle iText.StyledXmlParser.Css.Page.PageMarginBoxContextNode.GetPageMarginBoxRectangle ( )
inlinevirtual

Gets the rectangle in which page margin box contents should be shown.

Returns
the iText.Kernel.Geom.Rectangle defining position and dimensions of the margin box content area

◆ SetContainingBlockForMarginBox()

virtual void iText.StyledXmlParser.Css.Page.PageMarginBoxContextNode.SetContainingBlockForMarginBox ( Rectangle  containingBlockForMarginBox )
inlinevirtual

Sets the containing block rectangle for the margin box, which is used for calculating some of the margin box properties relative values.

Parameters
containingBlockForMarginBox the iText.Kernel.Geom.Rectangle which is used as a reference for some margin box relative properties calculations.

◆ SetPageMarginBoxRectangle()

virtual void iText.StyledXmlParser.Css.Page.PageMarginBoxContextNode.SetPageMarginBoxRectangle ( Rectangle  pageMarginBoxRectangle )
inlinevirtual

Sets the rectangle in which page margin box contents are shown.

Parameters
pageMarginBoxRectangle the iText.Kernel.Geom.Rectangle defining position and dimensions of the margin box content area

Member Data Documentation

◆ PAGE_MARGIN_BOX_TAG

const String iText.StyledXmlParser.Css.Page.PageMarginBoxContextNode.PAGE_MARGIN_BOX_TAG = "_064ef03_page-margin-box"
static

The Constant PAGE_MARGIN_BOX_TAG.