MarginInfo

Overview

MarginInfo is a class in Aspose.Pdf FOSS for Java.

Represents margin information (top, bottom, left, right) for a content element.

Properties

NameTypeAccessDescription
topdoubleReadGets the top margin value.
bottomdoubleReadGets the bottom margin value.
leftdoubleReadGets the left margin value.
rightdoubleReadGets the right margin value.

Methods

SignatureDescription
MarginInfo()Creates a MarginInfo with all margins set to 0.
MarginInfo(left: double, bottom: double, right: double, top: double)Creates a MarginInfo with the specified margin values for each side.
MarginInfo(all: double)Creates a MarginInfo with all four margins set to the same value.
getTop()doubleGets the top margin value.
setTop(top: double)Sets the top margin value.
getBottom()doubleGets the bottom margin value.
setBottom(bottom: double)Sets the bottom margin value.
getLeft()doubleGets the left margin value.
setLeft(left: double)Sets the left margin value.
getRight()doubleGets the right margin value.
setRight(right: double)Sets the right margin value.
toString()String

See Also