pdfmargins-ag凯发旗舰厅



com.spire.pdf.graphics
class pdfmargins

java.lang.object
  extended by com.spire.pdf.graphics.pdfmargins

public class pdfmargins
extends java.lang.object

a class representing page margins.


constructor summary
pdfmargins()
          initializes a new instance of the class.
pdfmargins(float margin)
          create and initialize margin.
pdfmargins(float leftright, float topbottom)
          create and initialize margin.
pdfmargins(float left, float top, float right, float bottom)
          create and initialize margin.
 
method summary
 float getbottom()
          gets the bottom margin size.
 float getleft()
          gets the left margin size.
 float getright()
          gets the right margin size.
 float gettop()
          gets the top margin size.
 void setall(float value)
          sets margin of each side.
 void setbottom(float value)
          sets the bottom margin size.
 void setleft(float value)
          sets the left margin size.
 void setright(float value)
          sets the right margin size.
 void settop(float value)
          sets the top margin size.
 
constructor detail

pdfmargins

public pdfmargins()
initializes a new instance of the class.

pdfmargins

public pdfmargins(float margin)
create and initialize margin.
parameters:
margin - the margin size.

pdfmargins

public pdfmargins(float leftright,
                  float topbottom)
create and initialize margin.
parameters:
leftright - the left right.
topbottom - the top bottom.

pdfmargins

public pdfmargins(float left,
                  float top,
                  float right,
                  float bottom)
create and initialize margin.
parameters:
left - the left.
top - the top.
right - the right.
bottom - the bottom.
method detail

getleft

public float getleft()
gets the left margin size.

setleft

public void setleft(float value)
sets the left margin size.

gettop

public float gettop()
gets the top margin size.

settop

public void settop(float value)
sets the top margin size.

getright

public float getright()
gets the right margin size.

setright

public void setright(float value)
sets the right margin size.

getbottom

public float getbottom()
gets the bottom margin size.

setbottom

public void setbottom(float value)
sets the bottom margin size.

setall

public void setall(float value)
sets margin of each side.


网站地图