usmanazizgroupdocs
4/17/2017 - 9:12 AM

GetSectionProperties.cs

// For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
using (WordsDocument doc = Document.Load<WordsDocument>(@"D:\test.docx"))
{
    Console.WriteLine(doc.Sections[0].PageSetup.Width);
    Console.WriteLine(doc.Sections[0].PageSetup.Height);
    Console.WriteLine(doc.Sections[0].PageSetup.TopMargin);
    Console.WriteLine(doc.Sections[0].PageSetup.RightMargin);
    Console.WriteLine(doc.Sections[0].PageSetup.BottomMargin);
    Console.WriteLine(doc.Sections[0].PageSetup.LeftMargin);
}