aspose.pdf
Class MarginInfo

java.lang.Object
  extended by aspose.pdf.MarginInfo

public class MarginInfo
extends java.lang.Object

Encapsulates margin info.

Typical usages are the following:

[Java] Pdf pdf1 = new Pdf(); pdf1.getPageSetup().setPageHeight(PageSize.A2Height); Section sec1 = pdf1.getSections().add(); Text text1 = new Text("this is text content"); text1.getMargin().Top = 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>


Field Summary
 float Bottom
          The lower left and upper right coordination of the rectangle.
 float Inner
          The lower left and upper right coordination of the rectangle.
 float Left
          The lower left and upper right coordination of the rectangle.
 float Outer
          The lower left and upper right coordination of the rectangle.
 float Right
          The lower left and upper right coordination of the rectangle.
 float Top
          The lower left and upper right coordination of the rectangle.
 
Constructor Summary
MarginInfo()
          Initializes a new instance of the MarginInfo class.
 
Method Summary
 java.lang.Object clone()
          Clones a new MarginInfo object.
 float getBottom()
          Gets a float value that indicates the bottom margin.
 float getInner()
          Gets a float value that indicates the inner margin.
 float getLeft()
          Gets a float value that indicates the left margin.
 float getOuter()
          Gets a float value that indicates the outer margin.
 float getRight()
          Gets a float value that indicates the right margin.
 float getTop()
          Gets a float value that indicates the top margin.
 void setBottom(float value)
          Sets a float value that indicates the bottom margin.
 void setInner(float value)
          Sets a float value that indicates the inner margin.
 void setLeft(float value)
          Sets a float value that indicates the left margin.
 void setOuter(float value)
          Sets a float value that indicates the outer margin.
 void setRight(float value)
          Sets a float value that indicates the right margin.
 void setTop(float value)
          Sets a float value that indicates the top margin.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Left

public float Left
The lower left and upper right coordination of the rectangle.


Right

public float Right
The lower left and upper right coordination of the rectangle.


Top

public float Top
The lower left and upper right coordination of the rectangle.


Bottom

public float Bottom
The lower left and upper right coordination of the rectangle.


Inner

public float Inner
The lower left and upper right coordination of the rectangle.


Outer

public float Outer
The lower left and upper right coordination of the rectangle.

Constructor Detail

MarginInfo

public MarginInfo()
Initializes a new instance of the MarginInfo class.

Method Detail

getLeft

public float getLeft()
Gets 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".


setLeft

public void setLeft(float value)
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".

Parameters:
value -

getRight

public float getRight()
Gets 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".


setRight

public void setRight(float value)
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".

Parameters:
value -

getTop

public float getTop()
Gets 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".


setTop

public void setTop(float value)
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".

Parameters:
value -

getBottom

public float getBottom()
Gets 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".


setBottom

public void setBottom(float value)
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".

Parameters:
value -

getInner

public float getInner()
Gets 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".


setInner

public void setInner(float value)
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".

Parameters:
value -

getOuter

public float getOuter()
Gets 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".


setOuter

public void setOuter(float value)
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".

Parameters:
value -

clone

public java.lang.Object clone()
Clones a new MarginInfo object.

Overrides:
clone in class java.lang.Object
Returns:
The new object.