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


Glossary Item Box

Gets a Row object for the active row on the sheet.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property ActiveRow As Row
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As Row
 
value = instance.ActiveRow
C# 
public Row ActiveRow {get;}

Property Value

Row object containing the active row.

Remarks

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 row.

Example

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)

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.