System.Windows.Forms.ComboBox: Property Members

The properties of System.Windows.Forms.ComboBox are listed below. For a list of all members, see the ComboBox Members list.

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

Public Properties

AutoCompleteCustomSourceAutoCompleteStringCollection.

Gets or sets a custom System.Collections.Specialized.StringCollection to use when the ComboBox.AutoCompleteSource property is set to CustomSource.

AutoCompleteModeAutoCompleteMode.

Gets or sets an option that controls how automatic completion works for the System.Windows.Forms.ComboBox.

AutoCompleteSourceAutoCompleteSource.

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

override
BackColorSystem.Drawing.Color.

Gets or sets the background color for the control.

override
BackgroundImageSystem.Drawing.Image.

This property is not relevant to this class.

override
BackgroundImageLayoutImageLayout.

Gets or sets the background image layout as defined in the System.Windows.Forms.ImageLayout enumeration.

DataSourceobject.

Gets or sets the data source for this System.Windows.Forms.ComboBox.

DrawModeDrawMode.

Gets or sets a value indicating whether your code or the operating system will handle drawing of elements in the list.

DropDownHeightint.

Gets or sets the height in pixels of the drop-down portion of the System.Windows.Forms.ComboBox.

DropDownStyleComboBoxStyle.

Gets or sets a value specifying the style of the combo box.

DropDownWidthint.

Gets or sets the width of the of the drop-down portion of a combo box.

DroppedDownbool.

Gets or sets a value indicating whether the combo box is displaying its drop-down portion.

FlatStyleFlatStyle.

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

[read-only]
override
Focusedbool.

Gets a value indicating whether the System.Windows.Forms.ComboBox has focus.

override
ForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the control.

IntegralHeightbool.

Gets or sets a value indicating whether the control should resize to avoid showing partial items.

ItemHeightint.

Gets or sets the height of an item in the combo box.

[read-only]
ItemsComboBox.ObjectCollection.

Gets an object representing the collection of the items contained in this System.Windows.Forms.ComboBox.

MaxDropDownItemsint.

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

override
MaximumSizeSystem.Drawing.Size.

Gets or sets the size that is the upper limit that Control.GetPreferredSize(System.Drawing.Size) can specify.

MaxLengthint.

Gets or sets the number of characters a user can type into the System.Windows.Forms.ComboBox.

override
MinimumSizeSystem.Drawing.Size.

Gets or sets the size that is the lower limit that Control.GetPreferredSize(System.Drawing.Size) can specify.

PaddingPadding.

This property is not relevant for this class.

[read-only]
PreferredHeightint.

Gets the preferred height of the System.Windows.Forms.ComboBox.

override
SelectedIndexint.

Gets or sets the index specifying the currently selected item.

SelectedItemobject.

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

SelectedTextstring.

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

SelectionLengthint.

Gets or sets the number of characters selected in the editable portion of the combo box.

SelectionStartint.

Gets or sets the starting index of text selected in the combo box.

Sortedbool.

Gets or sets a value indicating whether the items in the combo box are sorted.

override
Textstring.

Gets or sets the text associated with this control.

Protected Properties

[read-only]
override
CreateParamsCreateParams.

Gets the required creation parameters when the control handle is created.

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

Gets the default size of the control.