Gets or sets whether the user can set focus to the cell using the keyboard or mouse.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Property CanFocus As Boolean |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As Column
Dim value As Boolean
instance.CanFocus = value
value = instance.CanFocus |
| C# | |
|---|
public bool CanFocus {get; set;} |
Remarks
Example
This example sets the CanFocus property.
| C# | Copy Code |
|---|
FpSpread1.Sheets[0].Cells[0, 1].CanFocus = false;
FpSpread1.Sheets[0].Columns[2].CanFocus = true;
FpSpread1.Sheets[0].Rows[2].CanFocus = true; |
| Visual Basic | Copy Code |
|---|
FpSpread1.Sheets(0).Cells(0, 1).CanFocus = False
FpSpread1.Sheets(0).Columns(2).CanFocus = True
FpSpread1.Sheets(0).Rows(2).CanFocus = True |
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also