A collection of Section objects in the document.
For a list of all members of this type, see SectionCollection Members.
System.Object
Aspose.Words.NodeCollection
Aspose.Words.SectionCollection
[Visual Basic]Public Class SectionCollection
Remarks
A Microsoft Word document can contain multiple sections. To create a section in a Microsoft Word, select the Insert/Break command and select a break type. The break specifies whether section starts on a new page or on the same page.
Programmatically inserting and removing sections can be used to customize documents produced during mail merge. If a document needs to have different content or parts of the content depending on some criteria, then you can create a "master" document that contains multiple sections and delete some of the sections before or after mail merge.
Example
Shows how to add/remove sections in a document.
[C#]
// Open the document.
Document doc = new