Section¶
Represents a section of a document. A section has its own page layout, headers, and footers.
Capabilities¶
Document Structure¶
- Section.Blocks: Gets the blocks in the section.
Properties¶
- Section.Content: Gets the content range of the element, for example to replace text only inside this element.
- Section.ElementType: Gets the element type name, such as
'Paragraph','Run'or'Table'.
Headers and Footers¶
- Section.HeadersFooters: Gets the section headers and footers.
Page Layout¶
- Section.PageSetup: Gets or sets the page setup for the section.
Methods¶
- Section.Clone: Creates a copy of the element. The copy is not part of the document until it is added to a collection with the collection's
Appendmethod, such as BlockCollection.Append. - Section.GetChildElements: Returns the child elements.
- Section.GetParentElements: Returns the ancestors of the element, starting from the direct parent.