Spread Windows Forms 7.0 Product Documentation
FocusPosition Property
See Also  Example Support Options
GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcDateTimeCellType Class : FocusPosition Property


Glossary Item Box

Gets or sets the initial cursor position when the editor gets focus.

Syntax

Visual Basic (Declaration) 
Public Property FocusPosition As FieldsEditorFocusCursorPosition
Visual Basic (Usage)Copy Code
Dim instance As GcDateTimeCellType
Dim value As FieldsEditorFocusCursorPosition
 
instance.FocusPosition = value
 
value = instance.FocusPosition
C# 
public FieldsEditorFocusCursorPosition FocusPosition {get; set;}

Example

This example uses the FocusPosition property.
C#Copy Code
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;
VB.NETCopy Code
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

Requirements

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

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.