aspose.pdf
Class Section

java.lang.Object
  extended by aspose.pdf.Section
Direct Known Subclasses:
ListSection

public class Section
extends java.lang.Object

Represents a section in a Pdf document.

Typical usages are the following:

[Java] Pdf pdf1 = new Pdf(); Section sec1 = pdf1.getSections().add(); Text text1 = new Text("This is text in section1."); text1.getMargin().Top = 30; sec1.getParagraphs().add(text1); Section sec2 = pdf1.getSections().add(); sec2.setIsLandscape(true); Text text2 = new Text("This is text in section2."); text2.getMargin().Top = 30; sec2.getParagraphs().add(text2); pdf1.save(....); [XML] <?xml version="1.0" encoding="utf-8" ?> <Pdf xmlns="Aspose.Pdf"> <Section> <Text MarginTop="30"> <Segment> This is text in section1. </Segment> </Text> </Section> <Section IsLandscape="true"> <Text MarginTop="30"> <Segment> This is text in section2.. </Segment> </Text> </Section> </Pdf>


Field Summary
 float CurColumnPosY
          If the section has multiple Columns, and Columns have not taken all the pages for each height (using the #$NC can be switched to the new Column), need to record the current section of the Y coordinates, so that the next section starting from this position.
 int FirstPageNumber
          The First Page Number in Section, default is -1;
 boolean IsNewPageCreated
          a boolean value that indicates whether the new page created, default is false.
 boolean IsWidowOrphanControlSet
          a boolean value that indicates whether Widow/Orphan control has been set, default is false.
 int PagesNumber
          Indicates the pages number of the section.
 float RealFooterMarginBottom
          a float value that Indicates Footer distance from the bottom, default is -1.
 float RealPageBottom
          a float value that Indicates the distance from the bottom, default is 0
 HeaderFooter watermark
          indicates the HeaderFooter Object of watermark
 
Constructor Summary
Section()
          Initializes a new instance of the Section class.
Section(Pdf pdf)
          Initializes a new instance of the Section class.
 
Method Summary
 void addParagraph(Paragraph para)
          Add a paragraph into the section.
 java.lang.Object clone()
          Clones a new Section object.
 java.lang.Object completeClone()
          Clones a new Section object.
 HeaderFooter getAdditionalEvenFooter()
          Gets a HeaderFooter object that indicates the additional even footer of the section.
 HeaderFooter getAdditionalEvenHeader()
          Gets a HeaderFooter object that indicates the additional even header of the section.
 HeaderFooter getAdditionalOddFooter()
          Gets a HeaderFooter object that indicates the additional odd footer of the section.
 HeaderFooter getAdditionalOddHeader()
          Gets a HeaderFooter object that indicates the additional odd header of the section.
 Color getBackgroundColor()
          Gets a Color object that indicates the background color of the
 java.lang.String getBackgroundImageFile()
          Gets a string that indicates the background image file name.
 float getBackgroundImageFixedWidth()
          Gets a float value that indicates the fixed width of the background image.
 ImageFileType getBackgroundImageType()
          Gets a Image enum that indicates the type of the background image.
 ColumnInfo getColumnInfo()
          Gets a ColumnInfo object that indicates the columns info.
 int getEndNoteNumberInSection()
          Gets End Note Number in Section.
 HeaderFooter getEvenFooter()
          Gets a HeaderFooter object that indicates the even footer of the section.
 HeaderFooter getEvenHeader()
          Gets a HeaderFooter object that indicates the even header of the section.
 int getFirstLineIndent()
          Gets an int value that indicates the blank space at the beginning of the section.
 int getFootNoteNumberInPage()
          Gets Footer Note Number in Page
 int getFootNoteNumberInSection()
          Gets Footer Note Number in Section
 GraphInfo getGraphInfo()
          Gets a GraphInfo that indicates graph info of the section.
 boolean getHasColumnLine()
          Gets a bool value that indicates the vertical line between columns need to been added
 java.lang.String getID()
          Gets a string that indicates the ID of the section.
 boolean getIsAutoHyphenated()
          Gets a bool value that indicates whether the text is hyphenated automatically.
 boolean getIsBackgroundImageBlackWhite()
          Gets a bool value that indicates whether the image is forced to be black-and-white.
 boolean getIsDisabled()
          Gets a bool value that indicates whether this section is disabled.
 boolean getIsEmpty()
          Gets a bool value that indicates whether the paragraph in the section is empty.
 boolean getIsFirstParaWritten()
          Gets whether the first paragraph of the section has been written.
 boolean getIsFullPage()
          Gets a boolean value that indicates whether The current Section is filled with the page.
 boolean getIsHasNextColumnFlag()
          Gets a bool value that indicates the next column flag.
 boolean getIsInitialized()
          Gets whether the Xml.DirectWriter.InitSection() has been called.
 boolean getIsLandscape()
          Gets a bool value that indicates whether the page orientation is landscape.
 boolean getIsNewColumn()
          Gets a bool value that indicates whether the section starts at new column.Default is true.
 boolean getIsNewPage()
          Gets a bool value that indicates whether the section starts a new page.
 boolean getIsPageNumberRestarted()
          Gets a bool value that indicates whether the page number is restarted at this section.
 boolean getIsSpaced()
          Gets a bool value that indicates whether the spaces at the begin of the text and returns in the text be shown.
 boolean getIsWidowOrphanControlEnabled()
          Gets a bool value that indicates whether the Widow/Orphan control is enabled.
 java.lang.Object getObjectByID(java.lang.String ID)
          Gets a object with specified ID in the section.
 HeaderFooter getOddFooter()
          Gets a HeaderFooter object that indicates the odd footer of the section.
 HeaderFooter getOddHeader()
          Gets a HeaderFooter object that indicates the odd header of the section.
 int getPageCount()
          Gets the pages number of the section.
 PageSetup getPageInfo()
          Gets a PageSetup that indicates page info of the section.
 int getPageRotatingAngle()
          Gets the number of degrees by which the page should be rotated clockwise when displayed or printed.
 Paragraphs getParagraphs()
          Gets a GraphInfo collection that indicates all paragraphs in the section.
 Pdf getPdf()
          Get a Pdf Object that indicates the parent Pdf of the section.
 int getStartingPageNumber()
          Gets a int value that indicates the starting page number of the section.
 TextInfo getTextInfo()
          Gets a TextInfo that indicates text info of the section.
 HeaderFooter getWatermark()
          Get a HeaderFooter Object that indicates the HeaderFooter Object of watermark.
 HeaderFooter insertFooter(HeaderFooterType type)
          Insert footer of the section.
 HeaderFooter insertHeader(HeaderFooterType type)
          Insert Header of the section.
 boolean isSameSize(Section sec)
          Gets a bool value that indicates whether the Specify Section and current Section is the same size.
 void setAdditionalEvenFooter(HeaderFooter value)
          Sets a HeaderFooter object that indicates the additional even footer of the section.
 void setAdditionalEvenHeader(HeaderFooter value)
          Sets a HeaderFooter object that indicates the additional even header of the section.
 void setAdditionalOddFooter(HeaderFooter value)
          Sets a HeaderFooter object that indicates the additional odd footer of the section.
 void setAdditionalOddHeader(HeaderFooter value)
          Sets a HeaderFooter object that indicates the additional odd header of the section.
 void setBackgroundColor(Color value)
          Sets a Color object that indicates the background color of the
 void setBackgroundImageFile(java.lang.String value)
          Sets a string that indicates the background image file name.
 void setBackgroundImageFixedWidth(float value)
          Sets a float value that indicates the fixed width of the background image.
 void setBackgroundImageType(ImageFileType value)
          Sets a Image enum that indicates the type of the background image.
 void setColumnInfo(ColumnInfo value)
          Sets a ColumnInfo object that indicates the columns info.
 void setEndNoteNumberInSection(int value)
          Sets End Note Number in Section.
 void setEvenFooter(HeaderFooter value)
          Sets a HeaderFooter object that indicates the even footer of the section.
 void setEvenHeader(HeaderFooter value)
          Sets a HeaderFooter object that indicates the even header of the section.
 void setFirstLineIndent(int value)
          Sets an int value that indicates the blank space at the beginning of the section.
 void setFootNoteNumberInPage(int value)
          Sets Foot Note Number in Page
 void setFootNoteNumberInSection(int value)
          Sets Footer Note Number in Section
 void setGraphInfo(GraphInfo value)
          Sets a GraphInfo that indicates graph info of the section.
 void setHasColumnLine(boolean value)
          Sets a bool value that indicates the vertical line between columns need to been added
 void setID(java.lang.String value)
          Sets a string that indicates the ID of the section.
 void setIsAutoHyphenated(boolean value)
          Sets a bool value that indicates whether the text is hyphenated automatically.
 void setIsBackgroundImageBlackWhite(boolean value)
          Sets a bool value that indicates whether the image is forced to be black-and-white.
 void setIsDisabled(boolean value)
          Sets a bool value that indicates whether this section is disabled.
 void setIsFirstParaWritten(boolean value)
          Sets whether the first paragraph of the section has been written.
 void setIsFullPage(boolean isFullPage)
          Sets a boolean value that indicates whether The current Section is filled with the page.
 void setIsHasNextColumnFlag(boolean value)
          Sets a bool value that indicates the next column flag
 void setIsInitialized(boolean value)
          Sets whether the Xml.DirectWriter.InitSection() has been called.
 void setIsLandscape(boolean value)
          Sets a bool value that indicates whether the page orientation is landscape.
 void setIsNewColumn(boolean value)
          Sets a bool value that indicates whether the section starts at new column.Default is true.
 void setIsNewPage(boolean value)
          Sets a bool value that indicates whether the section starts a new page.
 void setIsPageNumberRestarted(boolean value)
          Sets a bool value that indicates whether the page number is restarted at this section.
 void setIsSpaced(boolean value)
          Sets a bool value that indicates whether the spaces at the begin of the text and returns in the text be shown.
 void setIsWidowOrphanControlEnabled(boolean value)
          Sets a bool value that indicates whether the Widow/Orphan control is enabled.
 void setOddFooter(HeaderFooter value)
          Sets a HeaderFooter object that indicates the odd footer of the section.
 void setOddHeader(HeaderFooter value)
          Sets a HeaderFooter object that indicates the odd header of the section.
 void setPageCount(int value)
          Sets the pages number of the section.
 void setPageInfo(PageSetup value)
          Sets a PageSetup that indicates page info of the section.
 void setPageRotatingAngle(int value)
          Sets the number of degrees by which the page should be rotated clockwise when displayed or printed.
 void setParagraphs(Paragraphs value)
          Sets a GraphInfo collection that indicates all paragraphs in the section.
 void setPdf(Pdf value)
          Set a Pdf Object that indicates the parent Pdf of the section.
 void setStartingPageNumber(int value)
          Sets a int value that indicates the starting page number of the section.
 void setTextInfo(TextInfo value)
          Sets a TextInfo that indicates text info of the section.
 void setWatemark(HeaderFooter value)
          Set a HeaderFooter Object that indicates the HeaderFooter Object of watermark.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RealPageBottom

public float RealPageBottom
a float value that Indicates the distance from the bottom, default is 0


PagesNumber

public int PagesNumber
Indicates the pages number of the section.


FirstPageNumber

public int FirstPageNumber
The First Page Number in Section, default is -1;


IsWidowOrphanControlSet

public boolean IsWidowOrphanControlSet
a boolean value that indicates whether Widow/Orphan control has been set, default is false.


IsNewPageCreated

public boolean IsNewPageCreated
a boolean value that indicates whether the new page created, default is false.


CurColumnPosY

public float CurColumnPosY
If the section has multiple Columns, and Columns have not taken all the pages for each height (using the #$NC can be switched to the new Column), need to record the current section of the Y coordinates, so that the next section starting from this position.


watermark

public HeaderFooter watermark
indicates the HeaderFooter Object of watermark


RealFooterMarginBottom

public float RealFooterMarginBottom
a float value that Indicates Footer distance from the bottom, default is -1.

Constructor Detail

Section

public Section()
Initializes a new instance of the Section class.


Section

public Section(Pdf pdf)
Initializes a new instance of the Section class.

Parameters:
pdf - The pdf document object.

Remarks: This constructor can inherit common property values from the specified Pdf object.

Method Detail

getIsFullPage

public boolean getIsFullPage()
Gets a boolean value that indicates whether The current Section is filled with the page.


setIsFullPage

public void setIsFullPage(boolean isFullPage)
Sets a boolean value that indicates whether The current Section is filled with the page.

Parameters:
isFullPage -

getIsAutoHyphenated

public boolean getIsAutoHyphenated()
Gets a bool value that indicates whether the text is hyphenated automatically.


setIsAutoHyphenated

public void setIsAutoHyphenated(boolean value)
Sets a bool value that indicates whether the text is hyphenated automatically.

Parameters:
value -

getPageInfo

public PageSetup getPageInfo()
Gets a PageSetup that indicates page info of the section.


setPageInfo

public void setPageInfo(PageSetup value)
Sets a PageSetup that indicates page info of the section.

Parameters:
value -

isSameSize

public boolean isSameSize(Section sec)
Gets a bool value that indicates whether the Specify Section and current Section is the same size.

Parameters:
sec -

getTextInfo

public TextInfo getTextInfo()
Gets a TextInfo that indicates text info of the section.


setTextInfo

public void setTextInfo(TextInfo value)
Sets a TextInfo that indicates text info of the section.

Parameters:
value -

getPdf

public Pdf getPdf()
Get a Pdf Object that indicates the parent Pdf of the section.


setPdf

public void setPdf(Pdf value)
Set a Pdf Object that indicates the parent Pdf of the section.

Parameters:
value -

getIsFirstParaWritten

public boolean getIsFirstParaWritten()
Gets whether the first paragraph of the section has been written.


setIsFirstParaWritten

public void setIsFirstParaWritten(boolean value)
Sets whether the first paragraph of the section has been written.

Parameters:
value -

addParagraph

public void addParagraph(Paragraph para)
Add a paragraph into the section. This method is used in direct-to-file mode. That means all paragraphs will be rendered into pdf file without being saved in the document object model. Less memory will be consumed in this mode,but you can't access the paragraphs that be added into the document any more, so some of the advanced features such as combination of XML and API,hyperlink to specified paragraph,total page number in footer,etc.,is not available.

Parameters:
para - The paragraph to be added.

getGraphInfo

public GraphInfo getGraphInfo()
Gets a GraphInfo that indicates graph info of the section.


setGraphInfo

public void setGraphInfo(GraphInfo value)
Sets a GraphInfo that indicates graph info of the section.

Parameters:
value -

getParagraphs

public Paragraphs getParagraphs()
Gets a GraphInfo collection that indicates all paragraphs in the section.


setParagraphs

public void setParagraphs(Paragraphs value)
Sets a GraphInfo collection that indicates all paragraphs in the section.

Parameters:
value -

getOddHeader

public HeaderFooter getOddHeader()
Gets a HeaderFooter object that indicates the odd header of the section.


setOddHeader

public void setOddHeader(HeaderFooter value)
Sets a HeaderFooter object that indicates the odd header of the section.

Parameters:
value -

getEvenHeader

public HeaderFooter getEvenHeader()
Gets a HeaderFooter object that indicates the even header of the section.


setEvenHeader

public void setEvenHeader(HeaderFooter value)
Sets a HeaderFooter object that indicates the even header of the section.

Parameters:
value -

getOddFooter

public HeaderFooter getOddFooter()
Gets a HeaderFooter object that indicates the odd footer of the section.


setOddFooter

public void setOddFooter(HeaderFooter value)
Sets a HeaderFooter object that indicates the odd footer of the section.

Parameters:
value -

getEvenFooter

public HeaderFooter getEvenFooter()
Gets a HeaderFooter object that indicates the even footer of the section.


setEvenFooter

public void setEvenFooter(HeaderFooter value)
Sets a HeaderFooter object that indicates the even footer of the section.

Parameters:
value -

getFirstLineIndent

public int getFirstLineIndent()
Gets an int value that indicates the blank space at the beginning of the section.


setFirstLineIndent

public void setFirstLineIndent(int value)
Sets an int value that indicates the blank space at the beginning of the section.

Parameters:
value -

getIsSpaced

public boolean getIsSpaced()
Gets a bool value that indicates whether the spaces at the begin of the text and returns in the text be shown. For the following XML: [xml] <Text> <Segment>The first line, The second line.</Segment> </Text>

If IsSpaced is false, the result will be:

The first line,The second line.

If IsSpaced is true, the result will be:

The first line, The second line.


setIsSpaced

public void setIsSpaced(boolean value)
Sets a bool value that indicates whether the spaces at the begin of the text and returns in the text be shown. For the following XML: [xml] <Text> <Segment>The first line, The second line.</Segment> </Text>

If IsSpaced is false, the result will be:

The first line,The second line.

If IsSpaced is true, the result will be:

The first line, The second line.

Parameters:
value -

getID

public java.lang.String getID()
Gets a string that indicates the ID of the section.


setID

public void setID(java.lang.String value)
Sets a string that indicates the ID of the section.

Parameters:
value -

getIsDisabled

public boolean getIsDisabled()
Gets a bool value that indicates whether this section is disabled.


setIsDisabled

public void setIsDisabled(boolean value)
Sets a bool value that indicates whether this section is disabled. The default value is false. If this property is set to true, this section will not be rendered.


getIsWidowOrphanControlEnabled

public boolean getIsWidowOrphanControlEnabled()
Gets a bool value that indicates whether the Widow/Orphan control is enabled. Default is true. If it is true, Widow/Orphan control is enabled and Widows/orphans themselves are eliminated (disabled).


setIsWidowOrphanControlEnabled

public void setIsWidowOrphanControlEnabled(boolean value)
Sets a bool value that indicates whether the Widow/Orphan control is enabled. Default is true. If it is true, Widow/Orphan control is enabled and Widows/orphans themselves are eliminated (disabled).

Parameters:
value -

getFootNoteNumberInSection

public int getFootNoteNumberInSection()
Gets Footer Note Number in Section


setFootNoteNumberInSection

public void setFootNoteNumberInSection(int value)
Sets Footer Note Number in Section

Parameters:
value -

getFootNoteNumberInPage

public int getFootNoteNumberInPage()
Gets Footer Note Number in Page


setFootNoteNumberInPage

public void setFootNoteNumberInPage(int value)
Sets Foot Note Number in Page

Parameters:
value -

getIsHasNextColumnFlag

public boolean getIsHasNextColumnFlag()
Gets a bool value that indicates the next column flag.


setIsHasNextColumnFlag

public void setIsHasNextColumnFlag(boolean value)
Sets a bool value that indicates the next column flag

Parameters:
value -

getEndNoteNumberInSection

public int getEndNoteNumberInSection()
Gets End Note Number in Section.


setEndNoteNumberInSection

public void setEndNoteNumberInSection(int value)
Sets End Note Number in Section.

Parameters:
value -

insertHeader

public HeaderFooter insertHeader(HeaderFooterType type)
Insert Header of the section.


insertFooter

public HeaderFooter insertFooter(HeaderFooterType type)
Insert footer of the section.


getBackgroundImageFile

public java.lang.String getBackgroundImageFile()
Gets a string that indicates the background image file name.


setBackgroundImageFile

public void setBackgroundImageFile(java.lang.String value)
Sets a string that indicates the background image file name.

Parameters:
value -

getBackgroundColor

public Color getBackgroundColor()
Gets a Color object that indicates the background color of the


setBackgroundColor

public void setBackgroundColor(Color value)
Sets a Color object that indicates the background color of the

Parameters:
value -

getBackgroundImageType

public ImageFileType getBackgroundImageType()
Gets a Image enum that indicates the type of the background image.


setBackgroundImageType

public void setBackgroundImageType(ImageFileType value)
Sets a Image enum that indicates the type of the background image.

Parameters:
value -

getIsLandscape

public boolean getIsLandscape()
Gets a bool value that indicates whether the page orientation is landscape. The default is false, portrait.


setIsLandscape

public void setIsLandscape(boolean value)
Sets a bool value that indicates whether the page orientation is landscape. The default is false, portrait.

Parameters:
value -

getAdditionalOddFooter

public HeaderFooter getAdditionalOddFooter()
Gets a HeaderFooter object that indicates the additional odd footer of the section. If the first page needs one footer style, the subsequent pages need another footer style, the additional footer is needed.


setAdditionalOddFooter

public void setAdditionalOddFooter(HeaderFooter value)
Sets a HeaderFooter object that indicates the additional odd footer of the section. If the first page needs one footer style, the subsequent pages need another footer style, the additional footer is needed.

Parameters:
value -

getAdditionalEvenFooter

public HeaderFooter getAdditionalEvenFooter()
Gets a HeaderFooter object that indicates the additional even footer of the section. If the first page needs one footer style, the subsequent pages need another footer style, the additional footer is needed.


setAdditionalEvenFooter

public void setAdditionalEvenFooter(HeaderFooter value)
Sets a HeaderFooter object that indicates the additional even footer of the section. If the first page needs one footer style, the subsequent pages need another footer style, the additional footer is needed.


getAdditionalOddHeader

public HeaderFooter getAdditionalOddHeader()
Gets a HeaderFooter object that indicates the additional odd header of the section. If the first page needs one header style, the subsequent pages need another header style, the additional header is needed.


setAdditionalOddHeader

public void setAdditionalOddHeader(HeaderFooter value)
Sets a HeaderFooter object that indicates the additional odd header of the section. If the first page needs one header style, the subsequent pages need another header style, the additional header is needed.

Parameters:
value -

getAdditionalEvenHeader

public HeaderFooter getAdditionalEvenHeader()
Gets a HeaderFooter object that indicates the additional even header of the section. If the first page needs one header style, the subsequent pages need another header style, the additional header is needed.


setAdditionalEvenHeader

public void setAdditionalEvenHeader(HeaderFooter value)
Sets a HeaderFooter object that indicates the additional even header of the section. If the first page needs one header style, the subsequent pages need another header style, the additional header is needed.

Parameters:
value -

getBackgroundImageFixedWidth

public float getBackgroundImageFixedWidth()
Gets a float value that indicates the fixed width of the background image. If this property is not set, the real image size will be used as page size.


setBackgroundImageFixedWidth

public void setBackgroundImageFixedWidth(float value)
Sets a float value that indicates the fixed width of the background image. If this property is not set, the real image size will be used as page size.

Parameters:
value -

getIsBackgroundImageBlackWhite

public boolean getIsBackgroundImageBlackWhite()
Gets a bool value that indicates whether the image is forced to be black-and-white. If black-and-white TIFF image of CCITT subformat is used, this property must be set to true.


setIsBackgroundImageBlackWhite

public void setIsBackgroundImageBlackWhite(boolean value)
Sets a bool value that indicates whether the image is forced to be black-and-white. If black-and-white TIFF image of CCITT subformat is used, this property must be set to true.

Parameters:
value -

getIsNewPage

public boolean getIsNewPage()
Gets a bool value that indicates whether the section starts a new page. The default value is true.


setIsNewPage

public void setIsNewPage(boolean value)
Sets a bool value that indicates whether the section starts a new page. The default value is true.

Parameters:
value -

getIsInitialized

public boolean getIsInitialized()
Gets whether the Xml.DirectWriter.InitSection() has been called.


setIsInitialized

public void setIsInitialized(boolean value)
Sets whether the Xml.DirectWriter.InitSection() has been called.

Parameters:
value -

getPageRotatingAngle

public int getPageRotatingAngle()
Gets the number of degrees by which the page should be rotated clockwise when displayed or printed. The value must be a multiple of 90. Default value is 0.


setPageRotatingAngle

public void setPageRotatingAngle(int value)
Sets the number of degrees by which the page should be rotated clockwise when displayed or printed. The value must be a multiple of 90. Default value is 0.

Parameters:
value -

getHasColumnLine

public boolean getHasColumnLine()
Gets a bool value that indicates the vertical line between columns need to been added


setHasColumnLine

public void setHasColumnLine(boolean value)
Sets a bool value that indicates the vertical line between columns need to been added

Parameters:
value -

getColumnInfo

public ColumnInfo getColumnInfo()
Gets a ColumnInfo object that indicates the columns info.


setColumnInfo

public void setColumnInfo(ColumnInfo value)
Sets a ColumnInfo object that indicates the columns info.

Parameters:
value -

getObjectByID

public java.lang.Object getObjectByID(java.lang.String ID)
Gets a object with specified ID in the section.


getIsPageNumberRestarted

public boolean getIsPageNumberRestarted()
Gets a bool value that indicates whether the page number is restarted at this section.


setIsPageNumberRestarted

public void setIsPageNumberRestarted(boolean value)
Sets a bool value that indicates whether the page number is restarted at this section.

Parameters:
value -

getIsNewColumn

public boolean getIsNewColumn()
Gets a bool value that indicates whether the section starts at new column.Default is true. If this property is set to false, please make sure the section has the same column setting as the former section.


setIsNewColumn

public void setIsNewColumn(boolean value)
Sets a bool value that indicates whether the section starts at new column.Default is true. If this property is set to false, please make sure the section has the same column setting as the former section.

Parameters:
value -

getStartingPageNumber

public int getStartingPageNumber()
Gets a int value that indicates the starting page number of the section. Default is 1.


setStartingPageNumber

public void setStartingPageNumber(int value)
Sets a int value that indicates the starting page number of the section. Default is 1.

Parameters:
value -

clone

public java.lang.Object clone()
Clones a new Section object. Section format info is cloned but paragraphs are not cloned.

Overrides:
clone in class java.lang.Object
Returns:
The new cloned Section object.

completeClone

public java.lang.Object completeClone()
Clones a new Section object. Both format and paragraphs are cloned.


getWatermark

public HeaderFooter getWatermark()
Get a HeaderFooter Object that indicates the HeaderFooter Object of watermark.


setWatemark

public void setWatemark(HeaderFooter value)
Set a HeaderFooter Object that indicates the HeaderFooter Object of watermark.

Parameters:
value -

getIsEmpty

public boolean getIsEmpty()
Gets a bool value that indicates whether the paragraph in the section is empty.


getPageCount

public int getPageCount()
Gets the pages number of the section.


setPageCount

public void setPageCount(int value)
Sets the pages number of the section.

Parameters:
value -