Click or drag to resize

Section Class

Represents a group of Paragraphs and other Block derived elements that have a specific set of properties used to define the pages on which the text will appear, as well as other section-level properties.
Inheritance Hierarchy

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version:
public sealed class Section : Element, 

The Section type exposes the following members.

Public propertyBlocks
Gets the Section's blocks.
Public propertyContent
Gets the content of the current Element.
(Inherited from Element.)
Public propertyDocument
Gets the owner document.
(Inherited from Element.)
Public propertyElementType
Gets the ElementType of this Element instance.
(Overrides ElementElementType.)
Public propertyEndnoteSettings
Gets the endnote settings.
Public propertyFootnoteSettings
Gets the footnote settings.
Public propertyCode exampleHeadersFooters
Gets the Section's headers / footers.
Public propertyPageSetup
Gets or sets the page setup.
Public propertyParent
Gets the parent DocumentModel of this Section instance.
Public propertyParentCollection
Gets the SectionCollection that contains this Section instance.
Explicit Interface Implementations

Section elements are contained directly under the root element - DocumentModel and can be accessed with DocumentModel.Sections property.

Except holding the main document content, through Section.Blocks property, Section can also contain HeaderFooters, that are repeated on a header or a footer of a pages showing the Section's content.

Page setup properties, like page layout and printing options, can be customized with a Section.PageSetup property.

See Also