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

ドロップダウンウィンドウの最大の高さを取得または設定します。ユーザーがドロップダウンウィンドウのサイズをカスタマイズしていない場合、このプロパティの機能は有効になりません。
構文
Public Property DropDownMaxHeight As Integer
public int DropDownMaxHeight {get; set;}

プロパティ値

ドロップダウンウィンドウの最大の高さを示すSystem.Int32値。
既定値は150です。
使用例
ドロップダウンリストの外観を設定したGcMaskedComboBoxコントロールを作成するコード例を次に示します。この例では他にDropDownDropDownMaxHeightプロパティを使用しています。
'  Please use the following namespace
'  Imports System.Windows.Forms;
'  Imports GrapeCity.Win.Editors;

Public Sub SetDropDownSettings()
    ' Creates an instance of a GcMaskedComboBox control.
    Dim gcMaskedComboBox1 As New GcMaskedComboBox()

    ' Sets the AllowResize to true, you can change the size of drop-dwon window by drag the mouse.
    gcMaskedComboBox1.DropDown.AllowResize = True
    ' Sets the ClosingAnimation to Fade, the drop-down window will displayed as a fade effect when it's closing.
    gcMaskedComboBox1.DropDown.ClosingAnimation = DropDownAnimation.Fade
    ' Sets the OpeningAnimation to Fade, the drop-down window will displayed as a fade effect when it's opening.
    gcMaskedComboBox1.DropDown.OpeningAnimation = DropDownAnimation.Fade
    ' Sets the Dirction to AboveLeft, the drop-down window will displayed above the control and align to left.
    gcMaskedComboBox1.DropDown.Direction = DropDownDirection.AboveLeft
    ' Sets the ShowShadow to true, the drop-down window will displayed with a shadow.
    gcMaskedComboBox1.DropDown.ShowShadow = True

    ' Sets the DropDownMaxHeight to 100. So that the drop-down window height is 100 pixel if the Size of 
    ' the drop-down window isn't modified by user.
    gcMaskedComboBox1.DropDownMaxHeight = 100
End Sub
//  Please use the following namespace
//  using System.Windows.Forms;
//  using GrapeCity.Win.Editors;

public void SetDropDownSettings()
{
    // Creates an instance of a GcMaskedComboBox control.
    GcMaskedComboBox gcMaskedComboBox1 = new GcMaskedComboBox();

    // Sets the AllowResize to true, you can change the size of drop-dwon window by drag the mouse.
    gcMaskedComboBox1.DropDown.AllowResize = true;
    // Sets the ClosingAnimation to Fade, the drop-down window will displayed as a fade effect when it's closing.
    gcMaskedComboBox1.DropDown.ClosingAnimation = DropDownAnimation.Fade;
    // Sets the OpeningAnimation to Fade, the drop-down window will displayed as a fade effect when it's opening.
    gcMaskedComboBox1.DropDown.OpeningAnimation = DropDownAnimation.Fade;
    // Sets the Dirction to AboveLeft, the drop-down window will displayed above the control and align to left.
    gcMaskedComboBox1.DropDown.Direction = DropDownDirection.AboveLeft;
    // Sets the ShowShadow to true, the drop-down window will displayed with a shadow.
    gcMaskedComboBox1.DropDown.ShowShadow = true;

    // Sets the DropDownMaxHeight to 100. So that the drop-down window height is 100 pixel if the Size of 
    // the drop-down window isn't modified by user.
    gcMaskedComboBox1.DropDownMaxHeight = 100;
}
参照

GcMaskedComboBox クラス
GcMaskedComboBox メンバ
DropDown プロパティ

 

 


© 2004-2015 GrapeCity inc. All rights reserved.