PowerTools SPREAD for Windows Forms 8.0J
FocusPosition プロパティ (GcNumberCellType)


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

GcNumberCellType クラス
GcNumberCellType メンバ

 

 


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