Spread Windows Forms 7.0 Product Documentation
ActiveColumnIndex Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : ActiveColumnIndex Property


Glossary Item Box

Gets or sets the column index of the active cell on the sheet.

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

This property is available at run time only. Columns or rows that do not exist can not be active. This property returns -1 or null if there is no active column.

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 BasicCopy 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

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.