margins-ag凯发旗舰厅



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 value of all margins on one call
 int getbottom()
          gets the bottom margin
 int getleft()
          gets the left margin
 int getright()
          gets the right margin
 int gettop()
          gets the top margin
 void setall(int value)
          set value of all margins on one call
 void setbottom(int value)
          sets the bottom margin
 void setleft(int value)
          sets the left margin
 void setright(int value)
          sets the right margin
 void settop(int value)
          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 value of all margins on one call
returns:
int

setall

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

getleft

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

setleft

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

getright

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

setright

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

gettop

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

settop

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

getbottom

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

setbottom

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


网站地图