' For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
Using doc As DiagramDocument = Document.Load(Of DiagramDocument)(Utilities.MapSourceFilePath(FilePath))
For Each page As DiagramPage In doc.Pages
Console.WriteLine(page.Width)
Console.WriteLine(page.Height)
Console.WriteLine(page.LeftMargin)
Console.WriteLine(page.RightMargin)
Console.WriteLine(page.TopMargin)
Console.WriteLine(page.BottomMargin)
Console.WriteLine(page.Name)
Console.WriteLine(page.IsBackground)
Console.WriteLine(page.IsVisible)
If page.BackgroundPage IsNot Nothing Then
Console.WriteLine(page.BackgroundPage.Name)
End If
Next
End Using