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

Glossary Item Box

Gets a Column object for the active column on the sheet.


Visual Basic (Declaration) 
Public ReadOnly Property ActiveColumn As Column
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As Column
value = instance.ActiveColumn
public Column ActiveColumn {get;}

Property Value

Column object containing the active column


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


This example illustrates the use of this member by returning the active column and the active row.
C#Copy Code
FarPoint.Win.Spread.Column c; 
FarPoint.Win.Spread.Row r;
fpSpread1.ActiveSheet.SetActiveCell(2, 2);
c = fpSpread1.ActiveSheet.ActiveColumn;
r = fpSpread1.ActiveSheet.ActiveRow;
label1.Text = "The active column is " + fpSpread1.ActiveSheet.ActiveColumn.ToString(c) + " and the active row is " + fpSpread1.ActiveSheet.ActiveRow.ToString(r);
Visual BasicCopy Code
Dim c As FarPoint.Win.Spread.Column
Dim r As FarPoint.Win.Spread.Row
FpSpread1.ActiveSheet.SetActiveCell(2, 2)
c = FpSpread1.ActiveSheet.ActiveColumn
r = FpSpread1.ActiveSheet.ActiveRow
Label1.Text = "The active column is " & FpSpread1.ActiveSheet.ActiveColumn.ToString(c) & " and the active row is " & FpSpread1.ActiveSheet.ActiveRow.ToString(r)


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

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