usmanazizgroupdocs
4/17/2017 - 9:38 AM

Documents-GetContentAreaDimensions.vb

' For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
Using doc As CellsDocument = Document.Load(Of CellsDocument)(Utilities.MapSourceFilePath(FilePath))
    ' Get the size of content area
    Console.WriteLine(doc.Worksheets(0).ContentAreaHeight)
    Console.WriteLine(doc.Worksheets(0).ContentAreaWidth)

    ' Get the size of particular cell
    Console.WriteLine(doc.Worksheets(0).GetColumnWidth(0))
    Console.WriteLine(doc.Worksheets(0).GetRowHeight(0))
End Using