Spread Windows Forms 13.0 Product Documentation
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcDateTimeCellType Class / FocusPosition Property
Example


In This Topic
    FocusPosition Property (GcDateTimeCellType)
    In This Topic
    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