public final class MarginInfo extends Object implements com.aspose.ms.System.ICloneable
Encapsulates margin info.
[Java] LegacyPdf pdf1 = new LegacyPdf(); pdf1.getPageSetup().setPageHeight ( PageSize.A2Height); Section sec1 = pdf1.getSections().add(); Text text1 = new Text(sec1,"this is text content"); text1.getMargin().setTop ( 30); sec1.getParagraphs().add(text1); pdf1.save(...); [XML] <?xml version="1.0" encoding="utf-8" ?> <Pdf xmlns="Aspose.Pdf"> <Section PageHeight="1684"> <Text MarginTop="30"> <Segment>this is text content</Segment> </Text> </Section> </Pdf>
Modifier and Type | Field and Description |
---|---|
float |
Bottom
Gets or sets a float value that indicates the bottom margin.
|
float |
Inner
Gets or sets a float value that indicates the inner margin.
|
float |
Left
Gets or sets a float value that indicates the left margin.
|
float |
Outer
Gets or sets a float value that indicates the outer margin.
|
float |
Right
Gets or sets a float value that indicates the right margin.
|
float |
Top
Gets or sets a float value that indicates the top margin.
|
Constructor and Description |
---|
MarginInfo()
Initializes a new instance of the
MarginInfo class. |
public float Left
Gets or sets a float value that indicates the left margin. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,"10cm" or "5inch".
public float Right
Gets or sets a float value that indicates the right margin. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,"10cm" or "5inch".
public float Top
Gets or sets a float value that indicates the top margin. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,"10cm" or "5inch".
public float Bottom
Gets or sets a float value that indicates the bottom margin. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,"10cm" or "5inch".
public float Inner
Gets or sets a float value that indicates the inner margin. The unit is point. In case of mirror margins we can use Inner and Outer instead of Left and Right In XML,the default unit is point,but cm and inch are also supported. For example,"10cm" or "5inch".
public float Outer
Gets or sets a float value that indicates the outer margin. The unit is point. In case of mirror margins we can use Inner and Outer instead of Left and Right In XML,the default unit is point,but cm and inch are also supported. For example,"10cm" or "5inch".
public MarginInfo()
Initializes a new instance of the MarginInfo
class.
public Object deepClone()
Clones a new MarginInfo
object.
deepClone
in interface com.aspose.ms.System.ICloneable
Copyright © 2014 Aspose. All Rights Reserved.