Gets or sets the column index of the active cell on the sheet.
            
            
            
 Syntax
Syntax
| Visual Basic (Declaration) |  | 
|---|
| Public Property ActiveColumnIndex As Integer | 
| Visual Basic (Usage) |  Copy Code | 
|---|
| Dim instance As SheetView
Dim value As Integer
 
instance.ActiveColumnIndex = value
 
value = instance.ActiveColumnIndex | 
| C# |  | 
|---|
| public int ActiveColumnIndex {get; set;} | 
Property Value
Integer column index of the active column
Remarks
            
             Example
Example
This example illustrates the use of this member by returning the index of the active column and active row.
             
| C# |  Copy Code | 
|---|
| fpSpread1.ActiveSheet.SetActiveCell(2, 2);
label1.Text = "The active column is " + fpSpread1.ActiveSheet.ActiveColumnIndex.ToString() + " and the active row is " + fpSpread1.ActiveSheet.ActiveRowIndex.ToString(); | 
| Visual Basic |  Copy Code | 
|---|
| FpSpread1.ActiveSheet.SetActiveCell(2, 2)
Label1.Text = "The active column is " & FpSpread1.ActiveSheet.ActiveColumnIndex.ToString() & " and the active row is " & FpSpread1.ActiveSheet.ActiveRowIndex.ToString() | 
 Requirements
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
See Also