MarginInfo

Overview

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

Represents margin information for a content element.

This class provides 13 methods for working with MarginInfo objects in Java programs. Available methods include: MarginInfo, getBottom, getLeft, getRight, getTop, setBottom, setLeft, setRight, setTop, toString. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: bottom, left, right, top.

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
MarginInfo(top: double, bottom: double, left: double, right: double)Creates a MarginInfo with the specified values.

See Also

 English