Class ToolStripComboBoxEx
Implements
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class ToolStripComboBoxEx : ToolStripControlHost, IDisposable
Constructors
ToolStripComboBoxEx()
Declaration
public ToolStripComboBoxEx()
Properties
ComboBox
Gets a System.Windows.Forms.ComboBox in which the user can enter text, along with a list from which the user can select.
Declaration
public ComboBoxAdv ComboBox { get; }
Property Value
Type | Description |
---|---|
ComboBoxAdv | A System.Windows.Forms.ComboBox. |
DefaultMargin
Gets the default spacing, in pixels, between the ToolStripComboBoxEx and an adjacent item.
Declaration
protected override Padding DefaultMargin { get; }
Property Value
Type |
---|
System.Windows.Forms.Padding |
DefaultSize
Gets the default size of the ToolStripComboBoxEx.
Declaration
protected override Size DefaultSize { get; }
Property Value
Type |
---|
System.Drawing.Size |
DropDownStyle
Gets or sets a value specifying the style of the ToolStripComboBoxEx.
Declaration
public ComboBoxStyle DropDownStyle { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Forms.ComboBoxStyle | One of the System.Windows.Forms.ComboBoxStyle values. The default is System.Windows.Forms.ComboBoxStyle.DropDown. |
DroppedDown
Gets or sets a value indicating whether the ToolStripComboBoxEx currently displays its drop-down portion.
Declaration
public bool DroppedDown { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the ToolStripComboBoxEx currently displays its drop-down portion; otherwise, false. |
Items
Declaration
public ComboBoxBaseDataBound.ObjectCollection Items { get; }
Property Value
Type |
---|
ComboBoxBaseDataBound.ObjectCollection |
MaxDropDownItems
Gets or sets the maximum number of items to be shown in the drop-down portion of the ToolStripComboBoxEx.
Declaration
public int MaxDropDownItems { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The maximum number of items in the drop-down portion. The minimum for this property is 1 and the maximum is 100. |
MaxLength
Gets or sets the maximum number of characters allowed in the editable portion of a combo box.
Declaration
public int MaxLength { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The maximum number of characters the user can enter. Values of less than zero are reset to zero, which is the default value. |
MetroColor
Gets or sets the metrocolor.
Declaration
public Color MetroColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
SelectedIndex
Gets or sets the index specifying the currently selected item.
Declaration
public int SelectedIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | A zero-based index of the currently selected item. A value of negative one (-1) is returned if no item is selected. |
Sorted
Gets or sets a value indicating whether the items in the ToolStripComboBoxEx are sorted.
Declaration
public bool Sorted { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the combo box is sorted; otherwise, false. The default is false. |
Style
Gets/Sets ToolStripComboBoxEx Style
Declaration
public ToolStripExStyle Style { get; set; }
Property Value
Type |
---|
ToolStripExStyle |
Methods
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
OnDropDown(EventArgs)
Raises the DropDown event.
Declaration
protected virtual void OnDropDown(EventArgs ea)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | ea |
OnDropDownClosed(EventArgs)
Raises the DropDownClosed event.
Declaration
protected virtual void OnDropDownClosed(EventArgs ea)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | ea |
OnSelectedIndexChanged(EventArgs)
Raises the SelectedIndexChanged event.
Declaration
protected virtual void OnSelectedIndexChanged(EventArgs ea)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | ea |
OnSubscribeControlEvents(Control)
Declaration
protected override void OnSubscribeControlEvents(Control control)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | control |
OnTextUpdate(EventArgs)
Raises the TextUpdate event.
Declaration
protected virtual void OnTextUpdate(EventArgs ea)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | ea |
OnUnsubscribeControlEvents(Control)
Declaration
protected override void OnUnsubscribeControlEvents(Control control)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | control |
ResetStyle()
To reset Visual Style
Declaration
public void ResetStyle()
ShouldSerializeStyle()
To indicate whether to Serialize Style
Declaration
public bool ShouldSerializeStyle()
Returns
Type |
---|
System.Boolean |
Events
DropDown
Occurs when the drop-down portion of a ToolStripComboBoxEx is shown.
Declaration
public event EventHandler DropDown
Event Type
Type |
---|
System.EventHandler |
DropDownClosed
Occurs when the drop-down portion of the ToolStripComboBoxEx has closed.
Declaration
public event EventHandler DropDownClosed
Event Type
Type |
---|
System.EventHandler |
SelectedIndexChanged
Occurs when the value of the SelectedIndex property has changed.
Declaration
public event EventHandler SelectedIndexChanged
Event Type
Type |
---|
System.EventHandler |
TextUpdate
Occurs when the ToolStripComboBoxEx text has changed.
Declaration
public event EventHandler TextUpdate
Event Type
Type |
---|
System.EventHandler |