You can use the UsedCellRange property of Worksheet. It should be checked if it is empty and, since it is returning a range always containing the first cell, the same should be checked for the cell too:
CellRange range =
CellIndex cellIndex =
CellSelection cell =
ICellValue value = cell.GetValue().Value;
(range.ColumnCount == 1 && range.RowCount == 1 && value.ValueType == CellValueType.Empty)
"The document is empty"
"The document is NOT empty"
However, you should be aware that the property UsedCellRange stores all the cells used in the Worksheet, even if their content was already deleted. This means that if you type some text in one of the cells and then delete its content, this cell will be included in the UsedCellProperty. This also includes any style changes applied to cells.
Hope this helps.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.