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


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 cusor 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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

GcNumberCellType Class
GcNumberCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.