Aspose.Words.Examples.CSharp.Programming_Documents.Working_with_Sections.AddDeleteSection.AddSection C# (CSharp) Метод

AddSection() приватный статический Метод

Shows how to add a section to the end of the document.
private static AddSection ( string dataDir ) : void
dataDir string
Результат void
        private static void AddSection(string dataDir)
        {
            // ExStart:AddSection
            Document doc = new Document(dataDir);
            Section sectionToAdd = new Section(doc);
            doc.Sections.Add(sectionToAdd);
            // ExEnd:AddSection
            Console.WriteLine("\nSection added successfully to the end of the document.");
        }
        /// <summary>