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


エディタがフォーカスを取得したときの初期カーソル位置を取得または設定します。
構文
'Declaration
 
Public Property FocusPosition As EditorBaseFocusCursorPosition
'使用法
 
Dim instance As GcTextBoxCellType
Dim value As EditorBaseFocusCursorPosition
 
instance.FocusPosition = value
 
value = instance.FocusPosition
public EditorBaseFocusCursorPosition FocusPosition {get; set;}
次のサンプルコードは、FocusPosition プロパティを使用します。
GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType textcell = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
textcell.FocusPosition = GrapeCity.Win.Spread.InputMan.CellType.EditorBaseFocusCursorPosition.MouseLocation;
textcell.GridLine = new GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.DarkGreen);
textcell.LineSpace = 2;
textcell.ScrollBarMode = GrapeCity.Win.Spread.InputMan.CellType.ScrollBarMode.Automatic;
textcell.ScrollBars = ScrollBars.Both;
textcell.Multiline = true;
fpSpread1.Sheets[0].Cells[0, 0].CellType = textcell;
Dim textcell As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
textcell.FocusPosition = GrapeCity.Win.Spread.InputMan.CellType.EditorBaseFocusCursorPosition.MouseLocation
textcell.GridLine = New GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.DarkGreen)
textcell.LineSpace = 2
textcell.ScrollBarMode = GrapeCity.Win.Spread.InputMan.CellType.ScrollBarMode.Automatic
textcell.ScrollBars = ScrollBars.Both
textcell.Multiline = True
FpSpread1.Sheets(0).Cells(0, 0).CellType = textcell
参照

GcTextBoxCellType クラス
GcTextBoxCellType メンバ

 

 


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