ApiExamples.ExSection.SectionsAddSection C# (CSharp) Метод

SectionsAddSection() приватный Метод

private SectionsAddSection ( ) : void
Результат void
        public void SectionsAddSection()
        {
            //ExStart
            //ExFor:NodeCollection.Add
            //ExId:SectionsAddSection
            //ExSummary:Shows how to add a section to the end of the document.
            Document doc = new Document(MyDir + "Document.doc");
            Section sectionToAdd = new Section(doc); 
            doc.Sections.Add(sectionToAdd);
            //ExEnd
        }