GrapeCity SPREAD for WPF 2.0J
AutoOpenDropDown プロパティ (NumberCellType)

コンボボックス型セルが編集状態に入るときにドロップダウンウィンドウが自動的に表示されるかどうかを示す System.Boolean 値を取得または設定します。これは依存関係プロパティです。
構文
'Declaration
 
Public Property AutoOpenDropDown As Boolean
public bool AutoOpenDropDown {get; set;}

プロパティ値

System.Boolean 値。ドロップダウン可能なセルがフォーカスを受け取ったときにドロップダウンウィンドウが自動的に表示される場合は true。それ以外の場合は false。既定値は false です。
解説
AutoOpenDropDowntrue で、なおかつ AllowDropDownOpentrue であるときは、ドロップダウンウィンドウが自動的に表示されます。
次のサンプルはNumberCellTypeを作成しスピンボタンおよびドロップボタンの表示設定を行います。
public void CreateNumberCell2()
{
    NumberCellType numberCellType1 = new NumberCellType();
    numberCellType1.DropDownButtonVisibility = CellButtonVisibility.AlwaysShow;
    numberCellType1.SpinButtonVisibility = CellButtonVisibility.NotShow;
    numberCellType1.AutoOpenDropDown = true;
    this._gcSpreadGrid1[0, 0].CellType = numberCellType1;
}
Public Sub CreateNumberCell2()
    Dim numberCellType1 As New NumberCellType()
    numberCellType1.DropDownButtonVisibility = CellButtonVisibility.AlwaysShow
    numberCellType1.SpinButtonVisibility = CellButtonVisibility.NotShow
    numberCellType1.AutoOpenDropDown = True
    Me._gcSpreadGrid1(0, 0).CellType = numberCellType1
End Sub
参照

NumberCellType クラス
NumberCellType メンバ

 

 


Copyright © 2012 GrapeCity inc. All rights reserved.