Spread Windows Forms 12.0 Product Documentation
FocusPosition Property (GcNumberCellType)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcNumberCellType Class : FocusPosition Property
Gets or sets the initial cursor position when the editor gets focus.
Syntax
'Declaration
 
Public Property FocusPosition As EditorBaseFocusCursorPosition
'Usage
 
Dim instance As GcNumberCellType
Dim value As EditorBaseFocusCursorPosition
 
instance.FocusPosition = value
 
value = instance.FocusPosition
public EditorBaseFocusCursorPosition FocusPosition {get; set;}
Example
This example sets the edit cursor at the end of any number characters in the cell.
GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType ncell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType();
ncell1.FocusPosition = GrapeCity.Win.Spread.InputMan.CellType.EditorBaseFocusCursorPosition.End;
fpSpread1.Sheets[0].Cells[1, 1].CellType = ncell1;
Dim ncell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType()
ncell1.FocusPosition = GrapeCity.Win.Spread.InputMan.CellType.EditorBaseFocusCursorPosition.End
fpSpread1.Sheets(0).Cells(1, 1).CellType = ncell1
See Also

Reference

GcNumberCellType Class
GcNumberCellType Members