PowerTools InputMan for Windows Forms 8.0J
DropDown プロパティ (GcDateTime)
使用例 

ドロップダウンボタンの動作を設定するDropDown オブジェクトを取得または設定します。
構文
Public ReadOnly Property DropDown As DateTimeDropDown
public DateTimeDropDown DropDown {get;}

プロパティ値

DropDown オブジェクト。
解説
ドロップダウン動作とウィンドウの外観は、このDropDown プロパティを設定することでカスタマイズできます。これには、表示を有効にするかどうか、サイズ変更できるかどうか、ドロップダウンウィンドウの表示方向、ドロップダウンウィンドウの影、開閉時のアニメーションなどが含まれます。
使用例
ドロップダウンカレンダーの外観を設定した GcDateTime コントロールを作成するコード例を次に示します。
//  Please use the following namespace
//  using System.Windows.Forms;
//  using GrapeCity.Win.Editors;

public void SetDropDownSettings()
{
    // Creates an instance of a GcDateTime control.
    GcDateTime GcDateTime1 = new GcDateTime();
    // Sets the AllowResize to true, you can change the size of drop-dwon window by drag the mouse.
    GcDateTime1.DropDown.AllowResize = true;
    // Sets the ClosingAnimation to Fade, the drop-down window will displayed as a fade effect when it's closing.
    GcDateTime1.DropDown.ClosingAnimation = DropDownAnimation.Fade;
    // Sets the OpeningAnimation to Fade, the drop-down window will displayed as a fade effect when it's opening.
    GcDateTime1.DropDown.OpeningAnimation = DropDownAnimation.Fade;
    // Sets the Dirction to AboveLeft, the drop-down window will displayed above the control and align to left.
    GcDateTime1.DropDown.Direction = DropDownDirection.AboveLeft;
    // Sets the ShowShadow to true, the drop-down window will displayed with a shadow.
    GcDateTime1.DropDown.ShowShadow = true;
}
'  Please use the following namespace
'  Imports System.Windows.Forms;
'  Imports GrapeCity.Win.Editors;

Public Sub SetDropDownSettings()
    ' Creates an instance of a GcDateTime control.
    Dim GcDateTime1 As New GcDateTime()
    ' Sets the AllowResize to true, you can change the size of drop-dwon window by drag the mouse.
    GcDateTime1.DropDown.AllowResize = True
    ' Sets the ClosingAnimation to Fade, the drop-down window will displayed as a fade effect when it's closing.
    GcDateTime1.DropDown.ClosingAnimation = DropDownAnimation.Fade
    ' Sets the OpeningAnimation to Fade, the drop-down window will displayed as a fade effect when it's opening.
    GcDateTime1.DropDown.OpeningAnimation = DropDownAnimation.Fade
    ' Sets the Dirction to AboveLeft, the drop-down window will displayed above the control and align to left.
    GcDateTime1.DropDown.Direction = DropDownDirection.AboveLeft
    ' Sets the ShowShadow to true, the drop-down window will displayed with a shadow.
    GcDateTime1.DropDown.ShowShadow = True
End Sub
参照

GcDateTime クラス
GcDateTime メンバ

 

 


© 2004-2015 GrapeCity inc. All rights reserved.