System.Windows.Forms.ToolStripComboBox Members

The members of System.Windows.Forms.ToolStripComboBox are listed below.

See Also: Inherited members from System.Windows.Forms.ToolStripControlHost

Public Constructors

Initializes a new instance of the System.Windows.Forms.ToolStripComboBox class.

Initializes a new instance of the System.Windows.Forms.ToolStripComboBox class with the specified name.

Initializes a new instance of the System.Windows.Forms.ToolStripComboBox class derived from a base control.

Public Properties

AutoCompleteCustomSourceAutoCompleteStringCollection.

Gets or sets the custom string collection to use when the ToolStripComboBox.AutoCompleteSource property is set to AutoCompleteSource.CustomSource.

AutoCompleteModeAutoCompleteMode.

Gets or sets a value that indicates the text completion behavior of the System.Windows.Forms.ToolStripComboBox.

AutoCompleteSourceAutoCompleteSource.

Gets or sets the source of complete strings used for automatic completion.

override
BackgroundImageSystem.Drawing.Image.

This property is not relevant to this class.

override
BackgroundImageLayoutImageLayout.

This property is not relevant to this class.

[read-only]
ComboBoxComboBox.

Gets a System.Windows.Forms.ComboBox in which the user can enter text, along with a list from which the user can select.

DropDownHeightint.

Gets or sets the height, in pixels, of the drop-down portion box of a System.Windows.Forms.ToolStripComboBox.

DropDownStyleComboBoxStyle.

Gets or sets a value specifying the style of the System.Windows.Forms.ToolStripComboBox.

DropDownWidthint.

Gets or sets the width, in pixels, of the drop-down portion of a System.Windows.Forms.ToolStripComboBox.

DroppedDownbool.

Gets or sets a value indicating whether the System.Windows.Forms.ToolStripComboBox currently displays its drop-down portion.

FlatStyleFlatStyle.

Gets or sets the appearance of the System.Windows.Forms.ToolStripComboBox.

IntegralHeightbool.

Gets or sets a value indicating whether the System.Windows.Forms.ToolStripComboBox should resize to avoid showing partial items.

[read-only]
ItemsComboBox.ObjectCollection.

Gets a collection of the items contained in this System.Windows.Forms.ToolStripComboBox.

MaxDropDownItemsint.

Gets or sets the maximum number of items to be shown in the drop-down portion of the System.Windows.Forms.ToolStripComboBox.

MaxLengthint.

Gets or sets the maximum number of characters allowed in the editable portion of a combo box.

SelectedIndexint.

Gets or sets the index specifying the currently selected item.

SelectedItemobject.

Gets or sets currently selected item in the System.Windows.Forms.ToolStripComboBox.

SelectedTextstring.

Gets or sets the text that is selected in the editable portion of a System.Windows.Forms.ToolStripComboBox.

SelectionLengthint.

Gets or sets the number of characters selected in the editable portion of the System.Windows.Forms.ToolStripComboBox.

SelectionStartint.

Gets or sets the starting index of text selected in the System.Windows.Forms.ToolStripComboBox.

Sortedbool.

Gets or sets a value indicating whether the items in the System.Windows.Forms.ToolStripComboBox are sorted.

Protected Properties

[read-only]
override
DefaultMarginPadding.

Gets the default spacing, in pixels, between the System.Windows.Forms.ToolStripComboBox and an adjacent item.

[read-only]
override
DefaultSizeSystem.Drawing.Size.

Gets the default size of the System.Windows.Forms.ToolStripComboBox.

Public Methods

BeginUpdate()

Maintains performance when items are added to the System.Windows.Forms.ToolStripComboBox one at a time.

EndUpdate()

Resumes painting the System.Windows.Forms.ToolStripComboBox control after painting is suspended by the ToolStripComboBox.BeginUpdate method.

FindString(string) : int

Finds the first item in the System.Windows.Forms.ToolStripComboBox that starts with the specified string.

FindString(string, int) : int

Finds the first item after the given index which starts with the given string.

FindStringExact(string) : int

Finds the first item in the System.Windows.Forms.ToolStripComboBox that exactly matches the specified string.

FindStringExact(string, int) : int

Finds the first item after the specified index that exactly matches the specified string.

GetItemHeight(int) : int

Returns the height, in pixels, of an item in the System.Windows.Forms.ToolStripComboBox.

override
GetPreferredSize(System.Drawing.Size) : System.Drawing.Size

Retrieves the size of a rectangular area into which a control can be fitted.

Select(int, int)

Selects a range of text in the editable portion of the System.Windows.Forms.ToolStripComboBox.

SelectAll()

Selects all the text in the editable portion of the System.Windows.Forms.ToolStripComboBox.

override
ToString() : string

Returns a string representation of the System.Windows.Forms.ToolStripComboBox.

Protected Methods

Public Events

DoubleClick

This event is not relevant to this class.

DropDown

Occurs when the drop-down portion of a System.Windows.Forms.ToolStripComboBox is shown.

DropDownClosed

Occurs when the drop-down portion of the System.Windows.Forms.ToolStripComboBox has closed.

DropDownStyleChanged

Occurs when the ToolStripComboBox.DropDownStyle property has changed.

SelectedIndexChanged

Occurs when the value of the ToolStripComboBox.SelectedIndex property has changed.

TextUpdate

Occurs when the System.Windows.Forms.ToolStripComboBox text has changed.