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

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

Shows how to remove a section at the specified index.
private static DeleteSection ( string dataDir ) : void
dataDir string
Результат void
        private static void DeleteSection(string dataDir)
        {
            // ExStart:DeleteSection
            Document doc = new Document(dataDir);
            doc.Sections.RemoveAt(0);
            // ExEnd:DeleteSection
            Console.WriteLine("\nSection deleted successfully at 0 index.");
        }
        /// <summary>