Spread Windows Forms 11.0 Product Documentation
FocusPosition Property (GcDateTimeCellType)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcDateTimeCellType Class : FocusPosition Property
Gets or sets the initial cursor position when the editor gets focus.
Syntax
'Declaration
 
Public Property FocusPosition As FieldsEditorFocusCursorPosition
'Usage
 
Dim instance As GcDateTimeCellType
Dim value As FieldsEditorFocusCursorPosition
 
instance.FocusPosition = value
 
value = instance.FocusPosition
public FieldsEditorFocusCursorPosition FocusPosition {get; set;}
Example
This example uses the FocusPosition property.
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType inputcell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
inputcell.FocusPosition = GrapeCity.Win.Spread.InputMan.CellType.FieldsEditorFocusCursorPosition.FirstInputPosition;
inputcell.TabAction = GrapeCity.Win.Spread.InputMan.CellType.TabAction.Field;
fpSpread1.Sheets[0].Cells[0, 0].CellType = inputcell;
Dim inputcell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType
inputcell.FocusPosition = GrapeCity.Win.Spread.InputMan.CellType.FieldsEditorFocusCursorPosition.FirstInputPosition
inputcell.TabAction = GrapeCity.Win.Spread.InputMan.CellType.TabAction.Field
fpSpread1.Sheets(0).Cells(0, 0).CellType = inputcell
See Also

Reference

GcDateTimeCellType Class
GcDateTimeCellType Members