PowerTools SPREAD for Windows Forms 8.0J
EditorBaseFocusCursorPosition 列挙体


編集コントロールがフォーカスを受け取るときのポインタの位置を指定します。
構文
'Declaration
 
Public Enum EditorBaseFocusCursorPosition 
   Inherits System.Enum
'使用法
 
Dim instance As EditorBaseFocusCursorPosition
public enum EditorBaseFocusCursorPosition : System.Enum 
メンバ
メンバ説明
Endテキストを選択せずに、ポインタをコントロールのテキストの末尾に配置します。
FirstInputPositionテキストを選択せずに、ポインタをコントロール内の最初の入力位置に配置します。
Inherit位置はエディタのタイプと選択ポリシーによって決定されることを指定します。
MouseLocationテキストを選択せずに、ポインタをポインタデバイスの位置に配置します。
SelectAllポインタをコントロールのテキストの先頭に配置します。
次のサンプルコードは、EditorBaseFocusCursorPosition 列挙体を使用します。
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
継承階層

System.Object
   System.ValueType
      System.Enum
         GrapeCity.Win.Spread.InputMan.CellType.EditorBaseFocusCursorPosition

参照

GrapeCity.Win.Spread.InputMan.CellType 名前空間

 

 


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