Gets the index of the last non-empty row within the sheet.
public int LastRowIndex { get; }
A zero-based index of the last row in the sheet that contains either data or formatting.
The LastRowIndex property offers a straightforward means to gauge the extent of populated content within a sheet, supporting efficient data processing, analysis, and formatting adjustments from the beginning to the end of the document.