Gets a
Cell object for the active cell on the sheet.
Syntax
Visual Basic (Declaration) | |
---|
Public ReadOnly Property ActiveCell As Cell |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As SheetView
Dim value As Cell
value = instance.ActiveCell |
C# | |
---|
public Cell ActiveCell {get;} |
Property Value
Cell object containing the active cell
Remarks
Example
This example illustrates the use of this member by returning the cell that has the focus.
C# | Copy Code |
---|
fpSpread1.ActiveSheet.SetActiveCell(2, 2);
label1.Text = "The active cell is located at " + fpSpread1.ActiveSheet.ActiveCell.ToString(); |
Visual Basic | Copy Code |
---|
FpSpread1.ActiveSheet.SetActiveCell(2, 2)
Label1.Text = "The active cell is located at " & FpSpread1.ActiveSheet.ActiveCell.ToString() |
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