Xceed SmartUI for WinForms v3.6 Documentation
Xceed.SmartUI.Controls.v3.6 Assembly / Xceed.SmartUI.Controls.ToolBar Namespace / ComboBoxTool Class / MaxDropDownItems Property


In This Topic
    MaxDropDownItems Property
    In This Topic
    Gets or sets the maximum number of items that will be displayed in a ComboBoxTool's dropdown before a vertical scroll bar appears.
    Syntax
    'Declaration
     
    <DescriptionAttribute("The ComboBoxTool maximum number of items.")>
    <CategoryAttribute("Appearance")>
    <DefaultValueAttribute(8)>
    <BrowsableAttribute(True)>
    <MergablePropertyAttribute(True)>
    <LocalizableAttribute(False)>
    Public Property MaxDropDownItems As Integer
    'Usage
     
    Dim instance As ComboBoxTool
    Dim value As Integer
     
    instance.MaxDropDownItems = value
     
    value = instance.MaxDropDownItems
    [Description("The ComboBoxTool maximum number of items.")]
    [Category("Appearance")]
    [DefaultValue(8)]
    [Browsable(true)]
    [MergableProperty(true)]
    [Localizable(false)]
    public int MaxDropDownItems {get; set;}

    Property Value

    A value representing the maximum number of items that will be displayed in a ComboBoxTool's dropdown before a vertical scroll bar appears. By default, 8.
    Remarks

    If this property is modified while the ComboxBox is open (dropped down), the dropdown rectangle will not be modified. The new value will be used the next time the combo box opens. Likewise, adding items to the ComboBoxTool after the dropdown has opened will not modify the dropdown zone's size until the dropdown is reopened.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also