Gets the index of the last row in a specified range of cells within a sheet.
public int LastRow { get; }
The index of the last row in the cell range.
The LastRow property retrieves the index of the last row within a defined cell range, adhering to zero-based indexing, where the spreadsheet's first row is represented as 0.