PowerTools SPREAD for Windows Forms 10.0J
FocusPosition プロパティ (GcDateTimeCellType)


エディタがフォーカスを取得したときの初期カーソル位置を取得または設定します。
構文
'Declaration
 
Public Property FocusPosition As FieldsEditorFocusCursorPosition
'使用法
 
Dim instance As GcDateTimeCellType
Dim value As FieldsEditorFocusCursorPosition
 
instance.FocusPosition = value
 
value = instance.FocusPosition
public FieldsEditorFocusCursorPosition FocusPosition {get; set;}
次のサンプルコードは、FocusPosition プロパティを使用します。
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
参照

GcDateTimeCellType クラス
GcDateTimeCellType メンバ

 

 


© 2004-2017, GrapeCity inc. All rights reserved.