usmanazizgroupdocs
4/17/2017 - 9:13 AM

GetContentAreaDimensions.cs

// For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
using (CellsDocument doc = Document.Load<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));
}