[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Expressions.Reference.LastRow

LastRow Property

LastRow

Gets or sets the 0-based end row index.

For a range reference, this property stores the last row in the range. If the reference is not a range, it returns the same value as Row. If the reference is a range that does not contain row information, it returns the maximum row index.

Declaration
public int LastRow { get; set; }
Public Property LastRow As Integer
Examples
Reference reference = new Reference();
reference.IsRange = true;
reference.LastRow = 5;
int lastRow = reference.LastRow;