Returns the number of the first column in the specified range
[Visual Basic] Property ReadOnly Column As Integer [C#] int Column { get; } [C++] __property int get_Column(); [JScript] function get Column() : int
This example sets the value of A1 cell to the number of the first column in the selection.
[C#]
IWorksheet sheet = book.Worksheets[1];
sheet.Range["A1"].Value = sheet.Selection.Column;
[Visual Basic]
Dim sheet As IWorksheet = book.Worksheets(1)
sheet.Range("A1").Value = sheet.Selection.Column
[C++]
IWorksheet* sheet = book->Worksheets->Item[1];
sheet->Range->Item[S"A1"]->Value = sheet->Selection->Column;
IRange Interface | NativeExcel Namespace | Selection Property | Row Property