Xceed SmartUI for WinForms v3.6 Documentation
MaxDropDownItems Property


Xceed.SmartUI.Controls.v3.6 Assembly > Xceed.SmartUI.Controls.ToolBar Namespace > ComboBoxTool Class : MaxDropDownItems Property
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()>
<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()]
[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

Reference

ComboBoxTool Class
ComboBoxTool Members