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>