Click or drag to resize

DocumentGetSections Method

Gives all document sections properties

Namespace:  SOWIDocument.Word
Assembly:  SOWIDocument.Word (in SOWIDocument.Word.dll) Version: 22.2.10.1 (22.2.10.450)
Syntax
internal IEnumerable<SectionProperties> GetSections()

Return Value

Type: IEnumerableSectionProperties
List of SectionProperties
Remarks
Structure of document sections:

Paragraph 1 - Section 1

Paragraph 2 - Section 1

SectionProperties (Section 1) - Defines what section 1 is like

Paragraph 3 - Section 2

Paragraph 4 - Section 2

SectionProperties (Section 2) - Defines what section 2 is like

Paragraph 5 - Section 3

Final SectionProperties - Defines what Section 3 is like

This final definition exists within the Body tag itself. Other SectionProperties exist under Paragraph Properties

An example of Open Format XML section properties

<w:body> <w:p> … </w:p> … <w:sectPr> (final section's properties) </w:sectPr> </w:body>
See Also