Section module

class Section.Section

Bases: DocumentContainer, ISection, ICompositeObject

Represents a section in a document.

AddColumn(width: float, spacing: float) Column

Adds new column to the section.

AddParagraph() Paragraph

Adds a new paragraph to the section.

AddTable

Adds a new table to the section.

property Body: Body

Gets the section body.

property BreakCode: SectionBreakType

Returns or sets break code.

property ChildObjects: DocumentObjectCollection

Gets the child objects.

Clone() Section

Clones the section.

CloneSectionPropertiesTo(destSection: Section)

Clones the properties of the current section to the destination section.

property Columns: ColumnCollection

Get collection of columns which logically divide page on many printing/publishing areas.

property DocumentObjectType: DocumentObjectType

Gets the type of the document object.

property EndnoteOptions: FootEndnoteOptions

Gets or sets options that control numbering and positioning of endnotes in current section.

property FootnoteOptions: FootEndnoteOptions

Gets or sets options that control numbering and positioning of footnote in current section.

property HeadersFooters: HeadersFooters

Gets headers/footers of current section.

MakeColumnsSameWidth()

Makes all columns in current section to be of equal width.

property PageSetup: PageSetup

Gets page Setup of current section.

property Paragraphs: ParagraphCollection

Gets the paragraphs.

property ProtectForm: bool

Gets or sets a value indicating whether [protect form].

property Tables: TableCollection

Gets the tables.

property TextDirection: TextDirection

Gets or Sets the text direction.