iText 9.8.0 API
iText.Layout.Properties.Margins.PageMarginContent Class Reference

Class to store information about page margin content represented by iText.Layout.Element.IElement linked to MarginBoxName. More...

Inheritance diagram for iText.Layout.Properties.Margins.PageMarginContent:
iText.Layout.Properties.Margins.AbstractPageContent

Public Member Functions

  PageMarginContent (MarginBoxName marginBoxName, IElement marginContent)
  Creates new PageMarginContent instance. More...
 
  PageMarginContent (MarginBoxName marginBoxName, float marginInPoints)
  Creates new PageMarginContent instance. More...
 
  PageMarginContent (iText.Layout.Properties.Margins.PageMarginContent other)
  Creates new PageMarginContent instance by copying existing one. More...
 
virtual MarginBoxName  GetMarginBoxName ()
  Gets the page margin box name MarginBoxName which is based on its location on the page. More...
 
override bool  Equals (Object o)
 
override int  GetHashCode ()
 
- Public Member Functions inherited from iText.Layout.Properties.Margins.AbstractPageContent
virtual IElement  GetContent ()
  Returns layout element representing page content. More...
 

Additional Inherited Members

- Package Functions inherited from iText.Layout.Properties.Margins.AbstractPageContent
  AbstractPageContent (IElement content)
  Creates new AbstractPageContent instance. More...
 
  AbstractPageContent (iText.Layout.Properties.Margins.AbstractPageContent other)
  Creates new AbstractPageContent instance by copying existing one. More...
 

Detailed Description

Class to store information about page margin content represented by iText.Layout.Element.IElement linked to MarginBoxName.

Constructor & Destructor Documentation

◆ PageMarginContent() [1/3]

iText.Layout.Properties.Margins.PageMarginContent.PageMarginContent ( MarginBoxName  marginBoxName,
IElement  marginContent 
)
inline

Creates new PageMarginContent instance.

Parameters
marginBoxName

MarginBoxName specifying margin name based on its location on the page

Parameters
marginContent

iText.Layout.Element.IElement layout element with margin content

◆ PageMarginContent() [2/3]

iText.Layout.Properties.Margins.PageMarginContent.PageMarginContent ( MarginBoxName  marginBoxName,
float  marginInPoints 
)
inline

Creates new PageMarginContent instance.

Creates new PageMarginContent instance.

The margin will have the specified size in points.

Parameters
marginBoxName

MarginBoxName specifying margin name based on its location on the page

Parameters
marginInPoints float specifying the margin in points

◆ PageMarginContent() [3/3]

iText.Layout.Properties.Margins.PageMarginContent.PageMarginContent ( iText.Layout.Properties.Margins.PageMarginContent  other )
inline

Creates new PageMarginContent instance by copying existing one.

Parameters
other

PageMarginContent instance to copy

Member Function Documentation

◆ GetMarginBoxName()

virtual MarginBoxName iText.Layout.Properties.Margins.PageMarginContent.GetMarginBoxName ( )
inlinevirtual

Gets the page margin box name MarginBoxName which is based on its location on the page.

Returns
the margin box name