com.spire.doc.documents
Class Margins

java.lang.Object
  extended by com.spire.doc.documents.Margins

public final class Margins
extends java.lang.Object

Class allows to store Page Margins (integer values).


Constructor Summary
Margins()
          Default constructor.
Margins(int left, int top, int right, int bottom)
          Create margins with specified values
 
Method Summary
 int getAll()
          Allow to Get or Set value of all Margins on one call
 int getBottom()
          Gets or Sets the bottom margin
 int getLeft()
          Gets or Sets the left margin
 int getRight()
          Gets or Sets the right margin
 int getTop()
          Gets or Sets the top margin
 void setAll(int value)
          Allow to Get or Set value of all Margins on one call
 void setBottom(int value)
          Gets or Sets the bottom margin
 void setLeft(int value)
          Gets or Sets the left margin
 void setRight(int value)
          Gets or Sets the right margin
 void setTop(int value)
          Gets or Sets the top margin
 

Constructor Detail

Margins

public Margins()
Default constructor. Set all margins to 0.


Margins

public Margins(int left,
               int top,
               int right,
               int bottom)
Create margins with specified values

Parameters:
left - Left margin
top - Top margin
right - Right margins
bottom - Bottom margin
Method Detail

getAll

public int getAll()
Allow to Get or Set value of all Margins on one call


setAll

public void setAll(int value)
Allow to Get or Set value of all Margins on one call


getLeft

public int getLeft()
Gets or Sets the left margin


setLeft

public void setLeft(int value)
Gets or Sets the left margin


getRight

public int getRight()
Gets or Sets the right margin


setRight

public void setRight(int value)
Gets or Sets the right margin


getTop

public int getTop()
Gets or Sets the top margin


setTop

public void setTop(int value)
Gets or Sets the top margin


getBottom

public int getBottom()
Gets or Sets the bottom margin


setBottom

public void setBottom(int value)
Gets or Sets the bottom margin