marginsf-ag凯发旗舰厅



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

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.
 float getall()
          allow to get value of all margins on one call
 float getbottom()
          gets the bottom margin
 float getleft()
          gets the left margin
 float getright()
          gets the right margin
 float gettop()
          gets the top margin
 void setall(float value)
          allow to set value of all margins on one call
 void setbottom(float value)
          sets the bottom margin
 void setleft(float value)
          sets the left margin
 void setright(float value)
          sets the right margin
 void settop(float value)
          sets the top margin
 
methods inherited from class com.spire.doc.formatting.formatbase
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 value of all margins on one call
returns:
float

setall

public void setall(float value)
allow to set value of all margins on one call
parameters:
value - float

getleft

public float getleft()
gets the left margin
returns:
float

setleft

public void setleft(float value)
sets the left margin
parameters:
value - float

getright

public float getright()
gets the right margin
returns:
float

setright

public void setright(float value)
sets the right margin
parameters:
value - float

gettop

public float gettop()
gets the top margin
returns:
float

settop

public void settop(float value)
sets the top margin
parameters:
value - float

getbottom

public float getbottom()
gets the bottom margin
returns:
float

setbottom

public void setbottom(float value)
sets the bottom margin
parameters:
value - float

deepclone

public marginsf deepclone()
clones this instance.
overrides:
deepclone in class attrcollection
returns:
marginsf


网站地图