com.spire.doc.interfaces
Interface ISection

All Superinterfaces:
ICompositeObject, IDocumentObject
All Known Implementing Classes:
Section

public interface ISection
extends ICompositeObject

Represents a section inside a Document.


Method Summary
 Column addColumn(float width, float spacing)
          Adds new column to the section.
 Paragraph addParagraph()
          Adds a paragraph.
 Table addTable()
          Adds a table.
 Section deepClone()
          Clones it self.
 Body getBody()
          Gets the section body.
 SectionBreakType getBreakCode()
          Returns break code.
 ColumnCollection getColumns()
          Get collection of columns which logically divide page on many printing/publishing areas.
 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.
 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].
 
Methods inherited from interface com.spire.doc.interfaces.ICompositeObject
getChildObjects
 
Methods inherited from interface com.spire.doc.interfaces.IDocumentObject
getDocument, getDocumentObjectType, getNextSibling, getOwner, getPreviousSibling, isComposite
 

Method Detail

getParagraphs

ParagraphCollection getParagraphs()
Gets the paragraphs.

Returns:
the paragraphs.

getTables

TableCollection getTables()
Gets the tables.

Returns:
the tables.

getBody

Body getBody()
Gets the section body.

Returns:
the body.

getPageSetup

PageSetup getPageSetup()
Gets page Setup of current section.

Returns:
The PageSetup

getColumns

ColumnCollection getColumns()
Get collection of columns which logically divide page on many printing/publishing areas.

Returns:
The collection of the columns

getBreakCode

SectionBreakType getBreakCode()
Returns break code.

Returns:
The break code

setBreakCode

void setBreakCode(SectionBreakType value)
sets break code.

Parameters:
value - The break code

getProtectForm

boolean getProtectForm()
Gets a value indicating whether [protect form].

Returns:
true if [protect form]; otherwise, false

setProtectForm

void setProtectForm(boolean value)
sets a value indicating whether [protect form].

Parameters:
value - true if [protect form]; otherwise, false

addColumn

Column addColumn(float width,
                 float spacing)
Adds new column to the section.

Parameters:
width - The width of the column
spacing - The spacing of the column
Returns:
The column

addParagraph

Paragraph addParagraph()
Adds a paragraph.

Returns:
The paragraph

addTable

Table addTable()
Adds a table.

Returns:
The table

deepClone

Section deepClone()
Clones it self.

Specified by:
deepClone in interface IDocumentObject
Returns:
The new section

makeColumnsSameWidth

void makeColumnsSameWidth()
Makes all columns in current section to be of equal width.


getHeadersFooters

HeadersFooters getHeadersFooters()
Gets headers/footers of current section

Returns:
The headers/footers