GrapeCity SPREAD for Windows Forms 11.0J
StopEditingAfterDropDownItemSelected プロパティ


[Enter]キーを押した後またはコンボボックスリストの項目をクリックした後にドロップダウンリストを閉じて編集を終了するかどうかを取得または設定します。
構文
'Declaration
 
Public Property StopEditingAfterDropDownItemSelected As Boolean
'使用法
 
Dim instance As ComboBoxCellType
Dim value As Boolean
 
instance.StopEditingAfterDropDownItemSelected = value
 
value = instance.StopEditingAfterDropDownItemSelected
public bool StopEditingAfterDropDownItemSelected {get; set;}
次のサンプルコードは、StopEditingAfterDropDownItemSelectedプロパティを設定します。
FarPoint.Win.Spread.CellType.ComboBoxCellType cb = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
cb.Items = new string[] { "Item 1", "Item 2" };
cb.DropDownOptions = FarPoint.Win.DropDownOptions.Button;
cb.Editable = false;
cb.DropDownWhenStartEditing = true;
cb.DoubleClickTextToDropDown = true;
cb.StopEditingAfterDropDownItemSelected = true; 
fpSpread1.ActiveSheet.Cells[1, 1].CellType = cb;
Dim cb As New FarPoint.Win.Spread.CellType.ComboBoxCellType()
cb.Items = New String() {"Item 1", "Item 2"}
cb.DropDownOptions = FarPoint.Win.DropDownOptions.Button
cb.Editable = False
cb.DropDownWhenStartEditing = True
cb.DoubleClickTextToDropDown = True
cb.StopEditingAfterDropDownItemSelected = True
FpSpread1.ActiveSheet.Cells(1, 1).CellType = cb
参照

ComboBoxCellType クラス
ComboBoxCellType メンバ

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.