com.spire.doc.documents
Class MarginsF

java.lang.Object
  extended by com.spire.doc.OwnerHolder
      extended by com.spire.doc.documents.xml.DocumentSerializable
          extended by com.spire.doc.formatting.FormatBase
              extended by com.spire.doc.formatting.AttrCollection
                  extended by com.spire.doc.formatting.WordAttrCollection
                      extended by com.spire.doc.documents.MarginsF
All Implemented Interfaces:
IDocumentSerializable

public final class MarginsF
extends WordAttrCollection

Class allows to store Page Margins (float values).


Constructor Summary
MarginsF()
          Default constructor.
MarginsF(float left, float top, float right, float bottom)
          Create margins with specified values
 
Method Summary
 MarginsF deepClone()
          Clones this instance.
 boolean equals(MarginsF other)
           
 boolean equals(java.lang.Object obj)
           
 float getAll()
          Allow to Get or Set value of all Margins on one call
 float getBottom()
          Gets or Sets the bottom margin
 float getLeft()
          Gets or Sets the left margin
 float getRight()
          Gets or Sets the right margin
 float getTop()
          Gets or Sets the top margin
 void setAll(float value)
          Allow to Get or Set value of all Margins on one call
 void setBottom(float value)
          Gets or Sets the bottom margin
 void setLeft(float value)
          Gets or Sets the left margin
 void setRight(float value)
          Gets or Sets the right margin
 void setTop(float value)
          Gets or Sets the top margin
 
Methods inherited from class com.spire.doc.formatting.FormatBase
clearBackground, clearFormatting, hasKey, isDefault
 
Methods inherited from class com.spire.doc.OwnerHolder
getDocument
 

Constructor Detail

MarginsF

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


MarginsF

public MarginsF(float left,
                float top,
                float right,
                float bottom)
Create margins with specified values

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

getAll

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


setAll

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


getLeft

public float getLeft()
Gets or Sets the left margin


setLeft

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


getRight

public float getRight()
Gets or Sets the right margin


setRight

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


getTop

public float getTop()
Gets or Sets the top margin


setTop

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


getBottom

public float getBottom()
Gets or Sets the bottom margin


setBottom

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


deepClone

public MarginsF deepClone()
Clones this instance.

Overrides:
deepClone in class AttrCollection
Returns:

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(MarginsF other)