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


In This Topic
    FitDropDownWidthToItems Property
    In This Topic
    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(False)>
    <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(false)]
    [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