[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Expressions.Reference.LastColumn

LastColumn Property

LastColumn

Gets or sets the 0-based end column index.

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

Declaration
public int LastColumn { get; set; }
Public Property LastColumn As Integer
Examples
Reference reference = new Reference();
reference.Column = 1;
reference.LastColumn = 3;
int lastColumn = reference.LastColumn;