Property Dimension
Dimension
Gets the smallest range that holds every cell the sheet stores, or null when it stores none.
public XlsxCellRange? Dimension { get; }
Property Value
Remarks
Measured from the cells, not taken from the range the file declares for itself, which a file may get wrong. A cell stored only for its formatting counts. The first use reads the sheet through once and keeps an index of its cells (see GetCell(int, int)).
Exceptions
- InvalidDocumentException
The sheet's part is malformed.