Gets the index of this column, or the starting index for this range of columns.
Syntax
Visual Basic (Declaration) | |
---|
Public ReadOnly Property Index As Integer |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As Column
Dim value As Integer
value = instance.Index |
C# | |
---|
public int Index {get;} |
Property Value
Integer index of this column (or starting column if in a range)
Remarks
Example
This example illustrates the use of this member by returning the indexes of the Column object.
C# | Copy Code |
---|
FarPoint.Win.Spread.Column col;
fpSpread1.ActiveSheet.Cells[0, 0].Text = "Alignment";
col = fpSpread1.ActiveSheet.Columns[0];
col.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
col.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
col.Width = 120;
fpSpread1.ActiveSheet.Rows[0].Height = 60; |
Visual Basic | Copy Code |
---|
Dim col As FarPoint.Win.Spread.Column
Dim i, i1 As Integer
col = FpSpread1.ActiveSheet.Columns(0, 2)
i = col.Index
i1 = col.Index2
ListBox1.Items.AddRange(New Object() {i.ToString, i1.ToString}) |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also