Class PageMarginContent
java.lang.Object
com.itextpdf.layout.properties.margins.AbstractPageContent
com.itextpdf.layout.properties.margins.PageMarginContent
Class to store information about page margin content represented by
IElement linked to MarginBoxName.
-
Constructor Summary
ConstructorsConstructorDescriptionPageMarginContent(MarginBoxName marginBoxName, float marginInPoints) Creates newPageMarginContentinstance.PageMarginContent(MarginBoxName marginBoxName, IElement marginContent) Creates newPageMarginContentinstance.Creates newPageMarginContentinstance by copying existing one. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the page margin box nameMarginBoxNamewhich is based on its location on the page.inthashCode()Methods inherited from class com.itextpdf.layout.properties.margins.AbstractPageContent
getContent
-
Constructor Details
-
PageMarginContent
Creates newPageMarginContentinstance.- Parameters:
-
marginBoxName-MarginBoxNamespecifying margin name based on its location on the page -
marginContent-IElementlayout element with margin content
-
PageMarginContent
Creates newPageMarginContentinstance.The margin will have the specified size in points.
- Parameters:
-
marginBoxName-MarginBoxNamespecifying margin name based on its location on the page -
marginInPoints-floatspecifying the margin in points
-
PageMarginContent
Creates newPageMarginContentinstance by copying existing one.- Parameters:
-
other-PageMarginContentinstance to copy
-
-
Method Details
-
getMarginBoxName
Gets the page margin box nameMarginBoxNamewhich is based on its location on the page.- Returns:
- the margin box name
-
equals
-
hashCode
public int hashCode()
-