pagesetup-ag凯发旗舰厅



com.spire.doc
class pagesetup

java.lang.object
  extended by com.spire.doc.ownerholder
      extended by com.spire.doc.documents.xml.documentserializable
          extended by com.spire.doc.pagesetup

public class pagesetup
extends documentserializable

method summary
 boolean getbidi()
          gets whether section contains right-to-left text.
 borders getborders()
          gets page borders collection
 characterspacing getcharacterspacingcontrol()
          gets character spacing control.
 float getclientheight()
          gets width of client area.
 float getclientwidth()
          gets width of client area.
 float getdefaulttabwidth()
          gets the length of the auto tab.
 boolean getdifferentfirstpageheaderfooter()
           
 boolean getdifferentoddandevenpagesheaderfooter()
          setting to specify that the current section has a different header/footer for first page.
 boolean getequalcolumnwidth()
          gets a value indicating whether equal column width.
 float getfooterdistance()
          gets footer height in points.
 float getgutter()
          gets or sets extra space added to the margin for document binding in points.
 float getheaderdistance()
          gets height of header in points.
 float getlinenumberingdistancefromtext()
          gets distance from text in lines numbering
 linenumberingrestartmode getlinenumberingrestartmode()
          return line numbering mode
 int getlinenumberingstartvalue()
          gets line numbering start value
 int getlinenumberingstep()
          gets line numbering step
 marginsf getmargins()
          gets page margins in points.
 pageorientation getorientation()
          gets orientation of a page.
 boolean getpageborderincludefooter()
          gets a value indicating whether the page border include the footer.
 boolean getpageborderincludeheader()
          gets a value indicating whether the page border include the header.
 pageborderoffsetfrom getpageborderoffsetfrom()
          gets the position of page border
 pagebordersapplytype getpagebordersapplytype()
          gets the value that determine on which pages border is applied
 pagenumberstyle getpagenumberstyle()
          gets the page number style.
 java.awt.geom.dimension2d getpagesize()
          gets page size in points.
 int getpagestartingnumber()
          gets the page starting number.
 boolean getrestartpagenumbering()
          gets a value indicating whether to restart page numbering.
 pagealignment getverticalalignment()
          gets vertical alignment.
 void insertpagenumbers(boolean fromtoppage, pagenumberalignment horizontalalignment)
          inserts the page numbers.
 boolean isfrontpageborder()
          gets a value indicating whether this instance is front page border.
 void isfrontpageborder(boolean value)
          sets a value indicating whether this instance is front page border.
 void setbidi(boolean value)
          sets whether section contains right-to-left text.
 void setcharacterspacingcontrol(characterspacing value)
          sets character spacing control.
 void setcolumnslinebetween(boolean value)
          sets the value specifies if a vertical line is draw between each of the text columns in the this section.
 void setdefaulttabwidth(float value)
          sets the length of the auto tab.
 void setdifferentfirstpageheaderfooter(boolean value)
          setting to specify that the current section has a different header/footer for first page.
 void setdifferentoddandevenpagesheaderfooter(boolean value)
          true if the document has different headers and footers for odd-numbered and even-numbered pages.
 void setequalcolumnwidth(boolean value)
          sets a value indicating whether equal column width.
 void setfooterdistance(float value)
          sets footer height in points.
 void setgutter(float value)
          sets extra space added to the margin for document binding in points.
 void setheaderdistance(float value)
          sets height of header in points.
 void setlinenumberingdistancefromtext(float value)
          sets distance from text in lines numbering
 void setlinenumberingrestartmode(linenumberingrestartmode value)
          sets line numbering mode
 void setlinenumberingstartvalue(int value)
          sets line numbering start value
 void setlinenumberingstep(int value)
          sets line numbering step
 void setmargins(marginsf value)
          sets page margins in points.
 void setorientation(pageorientation value)
          sets orientation of a page.
 void setpageborderincludefooter(boolean value)
          sets a value indicating whether the page border include the footer.
 void setpageborderincludeheader(boolean value)
          sets a value indicating whether the page border include the header.
 void setpageborderoffsetfrom(pageborderoffsetfrom value)
          sets the position of page border
 void setpagebordersapplytype(pagebordersapplytype value)
          sets the value that determine on which pages border is applied
 void setpagenumberstyle(pagenumberstyle value)
          sets the page number style.
 void setpagesize(java.awt.geom.dimension2d value)
          sets page size in points.
 void setpagestartingnumber(int value)
          sets the page starting number.
 void setrestartpagenumbering(boolean value)
          sets a value indicating whether to restart page numbering.
 void setverticalalignment(pagealignment value)
          sets vertical alignment.
 java.lang.string tostring()
           
 
methods inherited from class com.spire.doc.ownerholder
getdocument
 
method detail

getgutter

public float getgutter()
gets or sets extra space added to the margin for document binding in points.
returns:
the gutter size.

setgutter

public void setgutter(float value)
sets extra space added to the margin for document binding in points.
parameters:
value - the gutter size.

getdefaulttabwidth

public float getdefaulttabwidth()
gets the length of the auto tab.
returns:
the length of the auto tab.

setdefaulttabwidth

public void setdefaulttabwidth(float value)
sets the length of the auto tab.
parameters:
value - the length of the auto tab.

getpagesize

public java.awt.geom.dimension2d getpagesize()
gets page size in points.
returns:
sizef

setpagesize

public void setpagesize(java.awt.geom.dimension2d value)
sets page size in points.
parameters:
value - sizef

getorientation

public pageorientation getorientation()
gets orientation of a page.
returns:
pageorientation

setorientation

public void setorientation(pageorientation value)
sets orientation of a page.
parameters:
value - pageorientation

getverticalalignment

public pagealignment getverticalalignment()
gets vertical alignment.
returns:
pagealignment

setverticalalignment

public void setverticalalignment(pagealignment value)
sets vertical alignment.
parameters:
value - pagealignment

getmargins

public marginsf getmargins()
gets page margins in points.
returns:
marginsf

setmargins

public void setmargins(marginsf value)
sets page margins in points.
parameters:
value - marginsf

getheaderdistance

public float getheaderdistance()
gets height of header in points.
returns:
float

setheaderdistance

public void setheaderdistance(float value)
sets height of header in points.
parameters:
value - float

getfooterdistance

public float getfooterdistance()
gets footer height in points.
returns:
float

setfooterdistance

public void setfooterdistance(float value)
sets footer height in points.
parameters:
value - float

getclientwidth

public float getclientwidth()
gets width of client area.
returns:
float

getclientheight

public float getclientheight()
gets width of client area.
returns:
float

getdifferentfirstpageheaderfooter

public boolean getdifferentfirstpageheaderfooter()

setdifferentfirstpageheaderfooter

public void setdifferentfirstpageheaderfooter(boolean value)
setting to specify that the current section has a different header/footer for first page.
parameters:
value - a boolean value

getdifferentoddandevenpagesheaderfooter

public boolean getdifferentoddandevenpagesheaderfooter()
setting to specify that the current section has a different header/footer for first page.
returns:
the boolean value

setdifferentoddandevenpagesheaderfooter

public void setdifferentoddandevenpagesheaderfooter(boolean value)
true if the document has different headers and footers for odd-numbered and even-numbered pages.
parameters:
value - boolean

getlinenumberingrestartmode

public linenumberingrestartmode getlinenumberingrestartmode()
return line numbering mode
returns:
line numbering mode

setlinenumberingrestartmode

public void setlinenumberingrestartmode(linenumberingrestartmode value)
sets line numbering mode
parameters:
value - a line numbering mode

getlinenumberingstep

public int getlinenumberingstep()
gets line numbering step
returns:
line numbering step

setlinenumberingstep

public void setlinenumberingstep(int value)
sets line numbering step
parameters:
value - line numbering step

getlinenumberingstartvalue

public int getlinenumberingstartvalue()
gets line numbering start value
returns:
line numbering start value

setlinenumberingstartvalue

public void setlinenumberingstartvalue(int value)
sets line numbering start value
parameters:
value - line numbering start value

getlinenumberingdistancefromtext

public float getlinenumberingdistancefromtext()
gets distance from text in lines numbering
returns:
distance from text in lines numbering

setlinenumberingdistancefromtext

public void setlinenumberingdistancefromtext(float value)
sets distance from text in lines numbering
parameters:
value - distance from text in lines numbering

getpagebordersapplytype

public pagebordersapplytype getpagebordersapplytype()
gets the value that determine on which pages border is applied
returns:
the pagebordersapplytype

setpagebordersapplytype

public void setpagebordersapplytype(pagebordersapplytype value)
sets the value that determine on which pages border is applied
parameters:
value - the pagebordersapplytype

getpageborderoffsetfrom

public pageborderoffsetfrom getpageborderoffsetfrom()
gets the position of page border
returns:
pageborderoffsetfrom

setpageborderoffsetfrom

public void setpageborderoffsetfrom(pageborderoffsetfrom value)
sets the position of page border
parameters:
value - pageborderoffsetfrom

isfrontpageborder

public boolean isfrontpageborder()
gets a value indicating whether this instance is front page border.
returns:
the boolean value

isfrontpageborder

public void isfrontpageborder(boolean value)
sets a value indicating whether this instance is front page border.
parameters:
value - a boolean value

getpageborderincludeheader

public boolean getpageborderincludeheader()
gets a value indicating whether the page border include the header. if the page border is not measured from the text extents using a value of text in the pageborderoffsetfrome, then it can be ignored.
returns:
the boolean value

setpageborderincludeheader

public void setpageborderincludeheader(boolean value)
sets a value indicating whether the page border include the header. if the page border is not measured from the text extents using a value of text in the pageborderoffsetfrome, then it can be ignored.
parameters:
value - a boolean value

getpageborderincludefooter

public boolean getpageborderincludefooter()
gets a value indicating whether the page border include the footer. if the page border is not measured from the text extents using a value of text in the pageborderoffsetfrome, then it can be ignored.
returns:
the boolean value

setpageborderincludefooter

public void setpageborderincludefooter(boolean value)
sets a value indicating whether the page border include the footer. if the page border is not measured from the text extents using a value of text in the pageborderoffsetfrome, then it can be ignored.
parameters:
value - a boolean value

getborders

public borders getborders()
gets page borders collection
returns:
borders

getbidi

public boolean getbidi()
gets whether section contains right-to-left text.
returns:
boolean

setbidi

public void setbidi(boolean value)
sets whether section contains right-to-left text.
parameters:
value - boolean

getequalcolumnwidth

public boolean getequalcolumnwidth()
gets a value indicating whether equal column width.
returns:
boolean

setequalcolumnwidth

public void setequalcolumnwidth(boolean value)
sets a value indicating whether equal column width.
parameters:
value - true if equal column width; otherwise, false

getpagenumberstyle

public pagenumberstyle getpagenumberstyle()
gets the page number style.
returns:
the page number style.

setpagenumberstyle

public void setpagenumberstyle(pagenumberstyle value)
sets the page number style.
parameters:
value - the page number style.

getpagestartingnumber

public int getpagestartingnumber()
gets the page starting number.
returns:
the page starting number.

setpagestartingnumber

public void setpagestartingnumber(int value)
sets the page starting number.
parameters:
value - the page starting number.

getrestartpagenumbering

public boolean getrestartpagenumbering()
gets a value indicating whether to restart page numbering.
returns:
if restart page numbering, set to true

setrestartpagenumbering

public void setrestartpagenumbering(boolean value)
sets a value indicating whether to restart page numbering.
parameters:
value - if restart page numbering, set to true

setcolumnslinebetween

public void setcolumnslinebetween(boolean value)
sets the value specifies if a vertical line is draw between each of the text columns in the this section.
parameters:
value - boolean

getcharacterspacingcontrol

public characterspacing getcharacterspacingcontrol()
gets character spacing control.
returns:
characterspacing

setcharacterspacingcontrol

public void setcharacterspacingcontrol(characterspacing value)
sets character spacing control.
parameters:
value - characterspacing

insertpagenumbers

public void insertpagenumbers(boolean fromtoppage,
                              pagenumberalignment horizontalalignment)
inserts the page numbers.
parameters:
fromtoppage - if it specifies the top of page, set to true
horizontalalignment - the horizontal alignment.

tostring

public java.lang.string tostring()
overrides:
tostring in class java.lang.object


网站地图