section-ag凯发旗舰厅



com.spire.doc
class section

java.lang.object
  extended by com.spire.doc.ownerholder
      extended by com.spire.doc.documents.xml.documentserializable
          extended by com.spire.doc.documentobject
              extended by com.spire.doc.documentbase
                  extended by com.spire.doc.documentcontainer
                      extended by com.spire.doc.section
all implemented interfaces:
icompositeobject, idocumentobject, isection

public class section
extends documentcontainer
implements isection

constructor summary
section(idocument doc)
          initializes a new instance of the section class.
 
method summary
 column addcolumn(float width, float spacing)
          adds new column to the section.
 paragraph addparagraph()
          adds the paragraph.
 table addtable()
          adds the table.
 table addtable(boolean showborder)
          adds a table.
 void clonesectionpropertiesto(section destsection)
          clones the properties of the current to the destination section.
 section deepclone()
          clones it self.
 body getbody()
          gets the section body.
 sectionbreaktype getbreakcode()
          gets break code.
 documentobjectcollection getchildobjects()
          gets the child objects.
 columncollection getcolumns()
          get collection of columns which logically divide page on many.
 documentobjecttype getdocumentobjecttype()
          gets the type of the document object
 footendnoteoptions getendnoteoptions()
          gets options that control numbering and positioning of endnotes in current section.
 footendnoteoptions getfootnoteoptions()
          gets options that control numbering and positioning of footnote in current section.
 headersfooters getheadersfooters()
          gets headers/footers of current section.
 pagesetup getpagesetup()
          gets page setup of current section.
 paragraphcollection getparagraphs()
          gets the paragraphs.
 boolean getprotectform()
          gets a value indicating whether [protect form].
 tablecollection gettables()
          gets the tables.
 textdirection gettextdirection()
          gets the text direction.
 void makecolumnssamewidth()
          makes all columns in current section to be of equal width.
 void setbreakcode(sectionbreaktype value)
          sets break code.
 void setprotectform(boolean value)
          sets a value indicating whether [protect form].
 void settextdirection(textdirection value)
          sets the text direction.
 
methods inherited from class com.spire.doc.documentobject
getfirstchild, getlastchild, getnextsibling, getowner, getprevioussibling, iscomposite, tostring
 
methods inherited from class com.spire.doc.ownerholder
getdocument
 
methods inherited from interface com.spire.doc.interfaces.idocumentobject
getdocument, getnextsibling, getowner, getprevioussibling, iscomposite
 
constructor detail

section

public section(idocument doc)
initializes a new instance of the section class.
parameters:
doc - the doc.
method detail

getbody

public body getbody()
gets the section body.
specified by:
getbody in interface isection
returns:
the body

getendnoteoptions

public footendnoteoptions getendnoteoptions()
gets options that control numbering and positioning of endnotes in current section.
returns:
footendnoteoptions

getfootnoteoptions

public footendnoteoptions getfootnoteoptions()
gets options that control numbering and positioning of footnote in current section.
returns:
footendnoteoptions

getheadersfooters

public headersfooters getheadersfooters()
gets headers/footers of current section.
specified by:
getheadersfooters in interface isection
returns:
headersfooters

getpagesetup

public pagesetup getpagesetup()
gets page setup of current section.
specified by:
getpagesetup in interface isection
returns:
pagesetup

getcolumns

public columncollection getcolumns()
get collection of columns which logically divide page on many. printing/publishing areas
specified by:
getcolumns in interface isection
returns:
columncollection

getbreakcode

public sectionbreaktype getbreakcode()
gets break code.
specified by:
getbreakcode in interface isection
returns:
sectionbreaktype

setbreakcode

public void setbreakcode(sectionbreaktype value)
sets break code.
specified by:
setbreakcode in interface isection
parameters:
value - sectionbreaktype

getdocumentobjecttype

public documentobjecttype getdocumentobjecttype()
gets the type of the document object
specified by:
getdocumentobjecttype in interface idocumentobject
specified by:
getdocumentobjecttype in class documentobject
returns:
the type of the document object

getchildobjects

public documentobjectcollection getchildobjects()
gets the child objects.
specified by:
getchildobjects in interface icompositeobject
specified by:
getchildobjects in class documentobject
returns:
the child objects.

getparagraphs

public paragraphcollection getparagraphs()
gets the paragraphs.
specified by:
getparagraphs in interface isection
returns:
the paragraphs.

gettables

public tablecollection gettables()
gets the tables.
specified by:
gettables in interface isection
returns:
the tables.

gettextdirection

public textdirection gettextdirection()
gets the text direction.
returns:
the text direction.

settextdirection

public void settextdirection(textdirection value)
sets the text direction.
parameters:
value - the text direction.

getprotectform

public boolean getprotectform()
gets a value indicating whether [protect form].
specified by:
getprotectform in interface isection
returns:
boolean

setprotectform

public void setprotectform(boolean value)
sets a value indicating whether [protect form].
specified by:
setprotectform in interface isection
parameters:
value - true if [protect form]; otherwise, false

addcolumn

public column addcolumn(float width,
                        float spacing)
adds new column to the section.
specified by:
addcolumn in interface isection
parameters:
width - the width.
spacing - the spacing.
returns:
column

makecolumnssamewidth

public void makecolumnssamewidth()
makes all columns in current section to be of equal width.
specified by:
makecolumnssamewidth in interface isection

deepclone

public section deepclone()
clones it self.
specified by:
deepclone in interface idocumentobject
specified by:
deepclone in interface isection
overrides:
deepclone in class documentobject
returns:
section

clonesectionpropertiesto

public void clonesectionpropertiesto(section destsection)
clones the properties of the current to the destination section.
parameters:
destsection - the destination section.

addparagraph

public paragraph addparagraph()
adds the paragraph.
specified by:
addparagraph in interface isection
returns:
paragraph

addtable

public table addtable()
adds the table.
specified by:
addtable in interface isection
returns:
table

addtable

public table addtable(boolean showborder)
adds a table.
parameters:
showborder - display table borders.true to display;false does not display.
returns:
the table


网站地图