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: 25.3.30.1255
Syntax
public sealed class Section : Element, 
	IContentElement

The Section type exposes the following members.

Constructors
Properties
  NameDescription
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 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.
Top
Methods
Explicit Interface Implementations
Remarks

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