MarginInfo

Overview

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

Represents margin information for page elements.

This class declares 4 methods for MarginInfo objects in .NET programs. Available methods include: Clone, MarginInfo. Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Bottom, Left, Right, Top.

Properties

NameTypeAccessDescription
TopdoubleRead/WriteTop margin in PDF points.
BottomdoubleRead/WriteBottom margin in PDF points.
LeftdoubleRead/WriteLeft margin in PDF points.
RightdoubleRead/WriteRight margin in PDF points.

Methods

SignatureDescription
MarginInfo()Creates margins of 0 on every side.
MarginInfo(left: double, bottom: double, right: double, top: double)Creates margins with the given left, bottom, right and top values in points (1/72 inch); all four sides count as explicitly set.
Clone()Shallow clone.
MarginInfo(commonMargin: MarginPartStyle)A copy that keeps each side’s user-set flag as it is (a generated page inherits its source page’s margins exactly as authored).

See Also

 English