Xceed SmartUI for WinForms v3.6 Documentation
FitDropDownWidthToItems Property


Xceed.SmartUI.Controls.v3.6 Assembly > Xceed.SmartUI.Controls.ToolBar Namespace > ComboBoxTool Class : FitDropDownWidthToItems Property
Gets or sets a value indicating if the width of the drop down should be adjusted to fit the width of its items.
Syntax
'Declaration
 
<DescriptionAttribute("How does the ComboBoxTool's drop down width is calculated.")>
<CategoryAttribute("Appearance")>
<DefaultValueAttribute()>
<BrowsableAttribute(True)>
<MergablePropertyAttribute(True)>
<LocalizableAttribute(False)>
Public Property FitDropDownWidthToItems As Boolean
'Usage
 
Dim instance As ComboBoxTool
Dim value As Boolean
 
instance.FitDropDownWidthToItems = value
 
value = instance.FitDropDownWidthToItems
[Description("How does the ComboBoxTool's drop down width is calculated.")]
[Category("Appearance")]
[DefaultValue()]
[Browsable(true)]
[MergableProperty(true)]
[Localizable(false)]
public bool FitDropDownWidthToItems {get; set;}

Property Value

true if the width of the drop down should be adjusted to fit the width of its items; false if its width should not exceed the width of the ComboBoxTool.
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