[]
Returns the zero based column number of the last column of the first range.
int LastColumn { get; }
ReadOnly Property LastColumn As Integer
| Type | Description |
|---|---|
| int | The column. |
IRange range = worksheet.Range["B2:C3"];
int lastColumn = range.LastColumn;