Spread Windows Forms 12.0 Product Documentation
ActiveCell Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : ActiveCell Property
Gets a Cell object for the active cell on the sheet.
Syntax
'Declaration
 
Public ReadOnly Property ActiveCell As Cell
'Usage
 
Dim instance As SheetView
Dim value As Cell
 
value = instance.ActiveCell
public Cell ActiveCell {get;}

Property Value

Cell object containing the active cell
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 are no active cells.

Example
This example illustrates the use of this member by returning the cell that has the focus.
fpSpread1.ActiveSheet.SetActiveCell(2, 2);
label1.Text = "The active cell is located at " + fpSpread1.ActiveSheet.ActiveCell.ToString();
FpSpread1.ActiveSheet.SetActiveCell(2, 2)
Label1.Text = "The active cell is located at " & FpSpread1.ActiveSheet.ActiveCell.ToString()
See Also

Reference

SheetView Class
SheetView Members
SetActiveCell Method

User-Task Documentation

Working with the Active Cell