Use Sections.Add to add a section to the end of the document.
Example SectionsAddSection
Shows how to add a section to the end of the document.
[C#]
Document doc = new Document(MyDir + "Document.doc");
Section sectionToAdd = new Section(doc);
doc.Sections.Add(sectionToAdd);
[Visual Basic]
Dim doc As Document = New Document(MyDir & "Document.doc")
Dim sectionToAdd As Section = New Section(doc)
doc.Sections.Add(sectionToAdd)
[Java]
Document doc = new Document(getMyDir() + "Document.doc");
Section sectionToAdd = new Section(doc);
doc.getSections().add(sectionToAdd);
The section that is to be added or inserted must not belong to an existing document. It must be either cloned from another section or removed from a document before it can be added.