System windows form combobox

Combo Box. Object Collection Класс

Определение

Представляет коллекцию элементов в ComboBox. Represents the collection of items in a ComboBox.

Комментарии

System.Windows.Forms.ComboBox.ObjectCollectionКласс инкапсулирует элементы в ComboBox . The System.Windows.Forms.ComboBox.ObjectCollection class encapsulates the items in the ComboBox. Коллекцию объектов поля со списком можно использовать для управления множеством типов объектов, включая строки, изображения и пользовательские бизнес-объекты. The object collection of a combo box can be used to manage many types of objects, including strings, images, and custom business objects.

Элементы в коллекцию можно добавлять несколькими способами. You can add items to the collection in several ways. AddМетод добавляет один объект в коллекцию. The Add method adds one object to the collection. Чтобы добавить в коллекцию несколько объектов, лучше создать массив элементов и назначить AddRange методу. To add a number of objects to the collection, it is best to create an array of items and assign with the AddRange method. Чтобы вставить объект в определенное место в коллекции, можно использовать Insert метод. To insert an object at a specific location within the collection, you can use the Insert method. Чтобы удалить элементы с известным индексом в коллекции, можно использовать Remove метод или RemoveAt . To remove items at a known index in the collection you can use either the Remove method or the RemoveAt method. ClearМетод удаляет все элементы из коллекции. The Clear method removes all the items from the collection.

Помимо методов и свойств для добавления и удаления элементов, объект System.Windows.Forms.ComboBox.ObjectCollection также предоставляет методы для поиска элементов в коллекции. In addition to methods and properties for adding and removing items, the System.Windows.Forms.ComboBox.ObjectCollection also provides methods to find items within the collection. ContainsМетод позволяет определить, является ли объект членом коллекции. The Contains method enables you to determine if an object is a member of the collection. Если известно, что элемент находится в коллекции, можно использовать IndexOf метод, чтобы определить, где находится элемент в коллекции. Once you know that the item is located within the collection, you can use the IndexOf method to determine where the item is located within the collection.

Конструкторы

Инициализирует новый экземпляр ComboBox.ObjectCollection. Initializes a new instance of ComboBox.ObjectCollection.

Свойства

Возвращает количество элементов в коллекции. Gets the number of items in the collection.

Возвращает значение, определяющее возможность изменения данной коллекции. Gets a value indicating whether this collection can be modified.

Возвращает из коллекции элемент по указанному индексу. Retrieves the item at the specified index within the collection.

Методы

Добавляет элемент в список позиций ComboBox. Adds an item to the list of items for a ComboBox.

Добавляет массив элементов в список позиций ComboBox. Adds an array of items to the list of items for a ComboBox.

Удаляет все элементы из коллекции ComboBox. Removes all items from the ComboBox.

Определяет, входит ли указанный элемент в данную коллекцию. Determines if the specified item is located within the collection.

Копирует коллекцию целиком в заданное место существующего массива объектов. Copies the entire collection into an existing array of objects at a specified location within the array.

Определяет, равен ли указанный объект текущему объекту. Determines whether the specified object is equal to the current object.

(Унаследовано от Object) GetEnumerator()

Возвращает перечислитель, который может использоваться для перемещения по коллекции элементов. Returns an enumerator that can be used to iterate through the item collection.

Служит хэш-функцией по умолчанию. Serves as the default hash function.

(Унаследовано от Object) GetType()

Возвращает объект Type для текущего экземпляра. Gets the Type of the current instance.

(Унаследовано от Object) IndexOf(Object)

Возвращает индекс указанного элемента в коллекции. Retrieves the index within the collection of the specified item.

Вставляет элемент в коллекцию по указанному индексу. Inserts an item into the collection at the specified index.

Создает неполную копию текущего объекта Object. Creates a shallow copy of the current Object.

(Унаследовано от Object) Remove(Object)

Удаляет заданный элемент из ComboBox. Removes the specified item from the ComboBox.

Удаляет элемент с указанным индексом из поля со списком ComboBox. Removes an item from the ComboBox at the specified index.

Возвращает строку, представляющую текущий объект. Returns a string that represents the current object.

(Унаследовано от Object)

Явные реализации интерфейса

Описание этого члена см. в разделе CopyTo(Array, Int32). For a description of this member, see CopyTo(Array, Int32).

Описание этого члена см. в разделе IsSynchronized. For a description of this member, see IsSynchronized.

Описание этого члена см. в разделе SyncRoot. For a description of this member, see SyncRoot.

Описание этого члена см. в разделе Add(Object). For a description of this member, see Add(Object).

Описание этого члена см. в разделе IsFixedSize. For a description of this member, see IsFixedSize.

Методы расширения

Приводит элементы объекта IEnumerable к заданному типу. Casts the elements of an IEnumerable to the specified type.

Выполняет фильтрацию элементов объекта IEnumerable по заданному типу. Filters the elements of an IEnumerable based on a specified type.

Позволяет осуществлять параллельный запрос. Enables parallelization of a query.

Преобразовывает коллекцию IEnumerable в объект IQueryable. Converts an IEnumerable to an IQueryable.

Combo Box Style Перечисление

Определение

Задает стиль ComboBox. Specifies the ComboBox style.

Указывает, что список отображается при нажатии кнопки «стрелка вниз», а текстовая часть является редактируемой. Specifies that the list is displayed by clicking the down arrow and that the text portion is editable. Это значит, что пользователь может ввести любое значение и не ограничен выбором из существующих значений списка. This means that the user can enter a new value and is not limited to selecting an existing value in the list. При использовании данного параметра значение Append параметра AutoCompleteMode работает аналогично значению SuggestAppend. When using this setting, the Append value of AutoCompleteMode works the same as the SuggestAppend value. Этот стиль используется по умолчанию. This is the default style.

Указывает, что список отображается при нажатии кнопки «стрелка вниз», а текстовая часть является нередактируемой. Specifies that the list is displayed by clicking the down arrow and that the text portion is not editable. Это значит, что пользователь не может ввести новое значение. This means that the user cannot enter a new value. Можно выбрать только значения из списка. Only values already in the list can be selected. Список отображается, только если свойствоAutoCompleteMode имеет значение Suggest или SuggestAppend. The list displays only if AutoCompleteMode is Suggest or SuggestAppend.

Указывает, что список всегда виден, а текстовая часть является редактируемой. Specifies that the list is always visible and that the text portion is editable. Это значит, что пользователь может ввести любое значение и не ограничен выбором из существующих значений списка. This means that the user can enter a new value and is not limited to selecting an existing value in the list.

Примеры

В следующем примере кода показано, как инициализировать ComboBox элемент управления, присвоив ComboBox.DropDownStyle свойству ComboBoxStyle значение. The following code example demonstrates how to initialize a ComboBox control by setting the ComboBox.DropDownStyle property to a ComboBoxStyle value.

Комментарии

DropDownStyleСвойство определяет, отображается ли список всегда, или отображается ли список в раскрывающемся списке. The DropDownStyle property specifies whether the list is always displayed or whether the list is displayed in a drop-down. DropDownStyleСвойство также указывает, можно ли редактировать текстовую часть. The DropDownStyle property also specifies whether the text portion can be edited.

Элемент управления ComboBox (Windows Forms) ComboBox Control (Windows Forms)

ComboBox Элемент управления Windows Forms используется для вывода данных в раскрывающемся поле со списком. The Windows Forms ComboBox control is used to display data in a drop-down combo box. По умолчанию ComboBox элемент управления отображается в двух частях: Верхняя часть — это текстовое поле, позволяющее пользователю ввести элемент списка. By default, the ComboBox control appears in two parts: the top part is a text box that allows the user to type a list item. Вторая часть — это поле со списком, в котором отображается список элементов, из которых пользователь может выбрать один из них. The second part is a list box that displays a list of items from which the user can select one.

в этом разделе In This Section

Общие сведения об элементе управления ComboBox ComboBox Control Overview
Описание элемента управления, его основных возможностей и свойств. Explains what this control is and its key features and properties.

Справочник Reference

Класс ComboBox ComboBox class
Описание класса и всех его членов. Describes this class and has links to all its members.

Создание списка для выбора элементов в Windows Forms Windows Forms Controls Used to List Options
Предоставляет список действий, которые можно выполнить с помощью списков, полей со списками и списков с установленными флажками. Provides a list of things you can do with list boxes, combo boxes, and checked list boxes.

Combo Box. Drop Down Style Свойство

Определение

Возвращает или задает значение, определяющее стиль поля со списком. Gets or sets a value specifying the style of the combo box.

Значение свойства

Одно из значений перечисления ComboBoxStyle. One of the ComboBoxStyle values. Значение по умолчанию — DropDown . The default is DropDown .

Исключения

Присваиваемое значение не относится к значениям ComboBoxStyle. The assigned value is not one of the ComboBoxStyle values.

Примеры

В следующем примере кода показано задание DropDownStyle Свойства. The following code example demonstrates setting the DropDownStyle property. Чтобы выполнить пример, вставьте следующий код в форму. To run the example, paste the following code in a form. Вызовите InitializeComboBox метод в конструкторе или Load событии формы. Call the InitializeComboBox method in the form’s constructor or Load event.

Читайте также:  Oracle linux mount iso file

Комментарии

The property specifies whether the list is always displayed or whether the list is displayed in a drop-down. The property also specifies whether the text portion can be edited. ComboBoxStyleСведения о доступных параметрах и их влиянии см. в разделе. See ComboBoxStyle for the available settings and their effects. Нет параметра, чтобы всегда отображать список и запретить ввод нового значения. There is no setting to always display the list and disallow entering a new value. Чтобы отобразить список, в который нельзя добавить новые значения, используйте ListBox элемент управления. To display a list to which no new values can be added, use a ListBox control.

Combo Box Class

Definition

Represents a Windows combo box control.

Examples

The following code example is a complete application showing how you can use the Add method to add items to a ComboBox, the FindString method to find items in a ComboBox, and the BeginUpdate and EndUpdate methods to efficiently add a large number items to a ComboBox. The ability to store values that are different from displayed text is inherited from ListControl. For an example of how to use this feature, see the ListControl class.

You must add references to the System.Drawing and System.Windows.Forms namespaces to run this example.

Remarks

A ComboBox displays a text box combined with a ListBox, which enables the user to select items from the list or enter a new value.

The DropDownStyle property specifies whether the list is always displayed or whether the list is displayed in a drop-down. The DropDownStyle property also specifies whether the text portion can be edited. See ComboBoxStyle for the available settings and their effects. There is no setting to always display the list and disallow entering a new value. To display a list to which no new values can be added, use a ListBox control.

To add or remove objects in the list at run time, use methods of the ComboBox.ObjectCollection class (through the Items property of the ComboBox). You can assign an array of object references with the AddRange method. The list then displays the default string value for each object. You can add individual objects with the Add method. You can delete items with the Remove method or clear the entire list with the Clear method.

In addition to display and selection functionality, the ComboBox also provides features that enable you to efficiently add items to the ComboBox and to find text within the items of the list. With the BeginUpdate and EndUpdate methods, you can add a large number of items to the ComboBox without the control being repainted each time an item is added to the list. The FindString and FindStringExact methods enable you to search for an item in the list that contains a specific search string.

You can use these properties to manage the currently selected item in the list, the Text property to specify the string displayed in the editing field, the SelectedIndex property to get or set the current item, and the SelectedItem property to get or set a reference to the object.

If you have a ListBox, ComboBox, or CheckedListBox on a base Windows Forms page and want to modify the string collections of those controls in a derived form, the string collections of those controls in the base form must be empty. If the string collections are not empty, they become read-only when you derive another form.

Constructors

Initializes a new instance of the ComboBox class.

Properties

Gets the AccessibleObject assigned to the control.

(Inherited from Control) AccessibleDefaultActionDescription

Gets or sets the default action description of the control for use by accessibility client applications.

(Inherited from Control) AccessibleDescription

Gets or sets the description of the control used by accessibility client applications.

(Inherited from Control) AccessibleName

Gets or sets the name of the control used by accessibility client applications.

(Inherited from Control) AccessibleRole

Gets or sets the accessible role of the control.

(Inherited from Control) AllowDrop

Gets or sets a value indicating whether the control can accept data that the user drags onto it.

(Inherited from Control) AllowSelection

Gets a value indicating whether the list enables selection of list items.

(Inherited from ListControl) Anchor

Gets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent.

(Inherited from Control) AutoCompleteCustomSource

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

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

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

Gets or sets where this control is scrolled to in ScrollControlIntoView(Control).

(Inherited from Control) AutoSize

This property is not relevant for this class.

(Inherited from Control) BackColor

Gets or sets the background color for the control.

This property is not relevant to this class.

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

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

(Inherited from Control) BindingContext

Gets or sets the BindingContext for the control.

(Inherited from Control) Bottom

Gets the distance, in pixels, between the bottom edge of the control and the top edge of its container’s client area.

(Inherited from Control) Bounds

Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control.

(Inherited from Control) CanEnableIme

Gets a value indicating whether the ImeMode property can be set to an active value, to enable IME support.

(Inherited from Control) CanFocus

Gets a value indicating whether the control can receive focus.

(Inherited from Control) CanRaiseEvents

Determines if events can be raised on the control.

(Inherited from Control) CanSelect

Gets a value indicating whether the control can be selected.

(Inherited from Control) Capture

Gets or sets a value indicating whether the control has captured the mouse.

(Inherited from Control) CausesValidation

Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus.

(Inherited from Control) ClientRectangle

Gets the rectangle that represents the client area of the control.

(Inherited from Control) ClientSize

Gets or sets the height and width of the client area of the control.

(Inherited from Control) CompanyName

Gets the name of the company or creator of the application containing the control.

(Inherited from Control) Container

Gets the IContainer that contains the Component.

(Inherited from Component) ContainsFocus

Gets a value indicating whether the control, or one of its child controls, currently has the input focus.

(Inherited from Control) ContextMenu

Gets or sets the shortcut menu associated with the control.

(Inherited from Control) ContextMenuStrip

Gets or sets the ContextMenuStrip associated with this control.

(Inherited from Control) Controls

Gets the collection of controls contained within the control.

(Inherited from Control) Created

Gets a value indicating whether the control has been created.

(Inherited from Control) CreateParams

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

Gets or sets the cursor that is displayed when the mouse pointer is over the control.

(Inherited from Control) DataBindings

Gets the data bindings for the control.

(Inherited from Control) DataManager

Gets the CurrencyManager associated with this control.

(Inherited from ListControl) DataSource

Gets or sets the data source for this ComboBox.

Gets or sets the data source for this ListControl.

(Inherited from ListControl) DefaultCursor

Gets or sets the default cursor for the control.

(Inherited from Control) DefaultImeMode

Gets the default Input Method Editor (IME) mode supported by the control.

(Inherited from Control) DefaultMargin

Gets the space, in pixels, that is specified by default between controls.

(Inherited from Control) DefaultMaximumSize

Gets the length and height, in pixels, that is specified as the default maximum size of a control.

(Inherited from Control) DefaultMinimumSize

Gets the length and height, in pixels, that is specified as the default minimum size of a control.

(Inherited from Control) DefaultPadding

Gets the internal spacing, in pixels, of the contents of a control.

(Inherited from Control) DefaultSize

Gets the default size of the control.

Gets a value that indicates whether the Component is currently in design mode.

(Inherited from Component) DeviceDpi

Gets the DPI value for the display device where the control is currently being displayed.

(Inherited from Control) DisplayMember

Gets or sets the property to display for this ListControl.

(Inherited from ListControl) DisplayRectangle

Gets the rectangle that represents the display area of the control.

(Inherited from Control) Disposing

Gets a value indicating whether the base Control class is in the process of disposing.

(Inherited from Control) Dock

Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent.

Читайте также:  Windows 10 1703 оригинальный образ 2017

(Inherited from Control) DoubleBuffered

Gets or sets a value indicating whether this control should redraw its surface using a secondary buffer to reduce or prevent flicker.

(Inherited from Control) DrawMode

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

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

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

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

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

Gets or sets a value indicating whether the control can respond to user interaction.

(Inherited from Control) Events

Gets the list of event handlers that are attached to this Component.

(Inherited from Component) FlatStyle

Gets or sets the appearance of the ComboBox.

Gets a value indicating whether the ComboBox has focus.

Gets or sets the font of the text displayed by the control.

(Inherited from Control) FontHeight

Gets or sets the height of the font of the control.

(Inherited from Control) ForeColor

Gets or sets the foreground color of the control.

Gets or sets the IFormatProvider that provides custom formatting behavior.

(Inherited from ListControl) FormatString

Gets or sets the format-specifier characters that indicate how a value is to be displayed.

(Inherited from ListControl) FormattingEnabled

Gets or sets a value indicating whether formatting is applied to the DisplayMember property of the ListControl.

(Inherited from ListControl) Handle

Gets the window handle that the control is bound to.

(Inherited from Control) HasChildren

Gets a value indicating whether the control contains one or more child controls.

(Inherited from Control) Height

Gets or sets the height of the control.

(Inherited from Control) ImeMode

Gets or sets the Input Method Editor (IME) mode of the control.

(Inherited from Control) ImeModeBase

Gets or sets the IME mode of a control.

(Inherited from Control) IntegralHeight

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

Gets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on.

(Inherited from Control) IsAccessible

Gets or sets a value indicating whether the control is visible to accessibility applications.

(Inherited from Control) IsDisposed

Gets a value indicating whether the control has been disposed of.

(Inherited from Control) IsHandleCreated

Gets a value indicating whether the control has a handle associated with it.

(Inherited from Control) IsMirrored

Gets a value indicating whether the control is mirrored.

(Inherited from Control) ItemHeight

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

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

Gets a cached instance of the control’s layout engine.

(Inherited from Control) Left

Gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container’s client area.

(Inherited from Control) Location

Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container.

(Inherited from Control) Margin

Gets or sets the space between controls.

(Inherited from Control) MaxDropDownItems

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

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

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

(Inherited from Control) MaxLength

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

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

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

(Inherited from Control) Name

Gets or sets the name of the control.

(Inherited from Control) Padding

This property is not relevant for this class.

Gets or sets padding within the control.

(Inherited from Control) Parent

Gets or sets the parent container of the control.

(Inherited from Control) PreferredHeight

Gets the preferred height of the ComboBox.

Gets the size of a rectangular area into which the control can fit.

(Inherited from Control) ProductName

Gets the product name of the assembly containing the control.

(Inherited from Control) ProductVersion

Gets the version of the assembly containing the control.

(Inherited from Control) RecreatingHandle

Gets a value indicating whether the control is currently re-creating its handle.

(Inherited from Control) Region

Gets or sets the window region associated with the control.

(Inherited from Control) RenderRightToLeft

This property is now obsolete.

(Inherited from Control) ResizeRedraw

Gets or sets a value indicating whether the control redraws itself when resized.

(Inherited from Control) Right

Gets the distance, in pixels, between the right edge of the control and the left edge of its container’s client area.

(Inherited from Control) RightToLeft

Gets or sets a value indicating whether control’s elements are aligned to support locales using right-to-left fonts.

(Inherited from Control) ScaleChildren

Gets a value that determines the scaling of child controls.

(Inherited from Control) SelectedIndex

Gets or sets the index specifying the currently selected item.

Gets or sets currently selected item in the ComboBox.

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

Gets or sets the value of the member property specified by the ValueMember property.

(Inherited from ListControl) SelectionLength

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

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

Gets a value indicating whether the control should display focus rectangles.

(Inherited from Control) ShowKeyboardCues

Gets a value indicating whether the user interface is in the appropriate state to show or hide keyboard accelerators.

(Inherited from Control) Site

Gets or sets the site of the control.

(Inherited from Control) Size

Gets or sets the height and width of the control.

(Inherited from Control) Sorted

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

Gets or sets the tab order of the control within its container.

(Inherited from Control) TabStop

Gets or sets a value indicating whether the user can give the focus to this control using the TAB key.

(Inherited from Control) Tag

Gets or sets the object that contains data about the control.

(Inherited from Control) Text

Gets or sets the text associated with this control.

Gets or sets the distance, in pixels, between the top edge of the control and the top edge of its container’s client area.

(Inherited from Control) TopLevelControl

Gets the parent control that is not parented by another Windows Forms control. Typically, this is the outermost Form that the control is contained in.

(Inherited from Control) UseWaitCursor

Gets or sets a value indicating whether to use the wait cursor for the current control and all child controls.

(Inherited from Control) ValueMember

Gets or sets the path of the property to use as the actual value for the items in the ListControl.

(Inherited from ListControl) Visible

Gets or sets a value indicating whether the control and all its child controls are displayed.

(Inherited from Control) Width

Gets or sets the width of the control.

(Inherited from Control) WindowTarget

This property is not relevant for this class.

(Inherited from Control)

Methods

Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control.

(Inherited from Control) AccessibilityNotifyClients(AccessibleEvents, Int32, Int32)

Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control .

(Inherited from Control) AddItemsCore(Object[])

Adds the specified items to the combo box.

Executes the specified delegate asynchronously on the thread that the control’s underlying handle was created on.

(Inherited from Control) BeginInvoke(Delegate, Object[])

Executes the specified delegate asynchronously with the specified arguments, on the thread that the control’s underlying handle was created on.

(Inherited from Control) BeginUpdate()

Maintains performance when items are added to the ComboBox one at a time.

Brings the control to the front of the z-order.

(Inherited from Control) Contains(Control)

Retrieves a value indicating whether the specified control is a child of the control.

(Inherited from Control) CreateAccessibilityInstance()

Creates a new accessibility object for the control.

Creates a new accessibility object for the control.

(Inherited from Control) CreateControl()

Forces the creation of the visible control, including the creation of the handle and any visible child controls.

(Inherited from Control) CreateControlsInstance()

Creates a new instance of the control collection for the control.

(Inherited from Control) CreateGraphics()

Creates the Graphics for the control.

(Inherited from Control)

Читайте также:  Центр обновления windows отключен сам
CreateHandle()

Creates a handle for the control.

Creates a handle for the control.

(Inherited from Control) CreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject) DefWndProc(Message)

Sends the specified message to the default window procedure.

(Inherited from Control) DestroyHandle()

Destroys the handle associated with the control.

(Inherited from Control) Dispose()

Releases all resources used by the Component.

(Inherited from Component) Dispose(Boolean)

Releases the unmanaged resources used by the ComboBox and optionally releases the managed resources.

Begins a drag-and-drop operation.

(Inherited from Control) DrawToBitmap(Bitmap, Rectangle)

Supports rendering to the specified bitmap.

(Inherited from Control) EndInvoke(IAsyncResult)

Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed.

(Inherited from Control) EndUpdate()

Resumes painting the ComboBox control after painting is suspended by the BeginUpdate() method.

Determines whether the specified object is equal to the current object.

(Inherited from Object) FilterItemOnProperty(Object)

Retrieves the current value of the ListControl item, if it is a property of an object, given the item.

(Inherited from ListControl) FilterItemOnProperty(Object, String)

Returns the current value of the ListControl item, if it is a property of an object given the item and the property name.

(Inherited from ListControl) FindForm()

Retrieves the form that the control is on.

(Inherited from Control) FindString(String)

Returns the index of the first item in the ComboBox that starts with the specified string.

Returns the index of the first item in the ComboBox beyond the specified index that contains the specified string. The search is not case sensitive.

Finds the first item in the combo box that matches the specified string.

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

Sets input focus to the control.

(Inherited from Control) GetAccessibilityObjectById(Int32)

Retrieves the specified AccessibleObject.

(Inherited from Control) GetAutoSizeMode()

Retrieves a value indicating how a control will behave when its AutoSize property is enabled.

(Inherited from Control) GetChildAtPoint(Point)

Retrieves the child control that is located at the specified coordinates.

(Inherited from Control) GetChildAtPoint(Point, GetChildAtPointSkip)

Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type.

(Inherited from Control) GetContainerControl()

Returns the next ContainerControl up the control’s chain of parent controls.

(Inherited from Control) GetHashCode()

Serves as the default hash function.

(Inherited from Object) GetItemHeight(Int32)

Returns the height of an item in the ComboBox.

Returns the text representation of the specified item.

(Inherited from ListControl) GetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject) GetNextControl(Control, Boolean)

Retrieves the next control forward or back in the tab order of child controls.

(Inherited from Control) GetPreferredSize(Size)

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

(Inherited from Control) GetScaledBounds(Rectangle, SizeF, BoundsSpecified)

Retrieves the bounds within which the control is scaled.

(Inherited from Control) GetService(Type)

Returns an object that represents a service provided by the Component or by its Container.

(Inherited from Component) GetStyle(ControlStyles)

Retrieves the value of the specified control style bit for the control.

(Inherited from Control) GetTopLevel()

Determines if the control is a top-level control.

(Inherited from Control) GetType()

Gets the Type of the current instance.

(Inherited from Object) Hide()

Conceals the control from the user.

(Inherited from Control) InitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject) InitLayout()

Called after the control has been added to another container.

(Inherited from Control) Invalidate()

Invalidates the entire surface of the control and causes the control to be redrawn.

(Inherited from Control) Invalidate(Boolean)

Invalidates a specific region of the control and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control.

(Inherited from Control) Invalidate(Rectangle)

Invalidates the specified region of the control (adds it to the control’s update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.

(Inherited from Control) Invalidate(Rectangle, Boolean)

Invalidates the specified region of the control (adds it to the control’s update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control.

(Inherited from Control) Invalidate(Region)

Invalidates the specified region of the control (adds it to the control’s update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.

(Inherited from Control) Invalidate(Region, Boolean)

Invalidates the specified region of the control (adds it to the control’s update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control.

(Inherited from Control) Invoke(Delegate)

Executes the specified delegate on the thread that owns the control’s underlying window handle.

(Inherited from Control) Invoke(Delegate, Object[])

Executes the specified delegate, on the thread that owns the control’s underlying window handle, with the specified list of arguments.

(Inherited from Control) InvokeGotFocus(Control, EventArgs)

Raises the GotFocus event for the specified control.

(Inherited from Control) InvokeLostFocus(Control, EventArgs)

Raises the LostFocus event for the specified control.

(Inherited from Control) InvokeOnClick(Control, EventArgs)

Raises the Click event for the specified control.

(Inherited from Control) InvokePaint(Control, PaintEventArgs)

Raises the Paint event for the specified control.

(Inherited from Control) InvokePaintBackground(Control, PaintEventArgs)

Raises the PaintBackground event for the specified control.

(Inherited from Control) IsInputChar(Char)

Determines if a character is an input character that the control recognizes.

(Inherited from Control) IsInputKey(Keys)

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

Converts a Logical DPI value to its equivalent DeviceUnit DPI value.

(Inherited from Control) LogicalToDeviceUnits(Size)

Transforms a size from logical to device units by scaling it for the current DPI and rounding down to the nearest integer value for width and height.

(Inherited from Control) MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object) MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject) NotifyInvalidate(Rectangle)

Raises the Invalidated event with a specified region of the control to invalidate.

(Inherited from Control) OnAutoSizeChanged(EventArgs)

(Inherited from Control) OnBackColorChanged(EventArgs)

(Inherited from Control) OnBackgroundImageLayoutChanged(EventArgs)

(Inherited from Control) OnBindingContextChanged(EventArgs)

(Inherited from ListControl) OnCausesValidationChanged(EventArgs)

(Inherited from Control) OnChangeUICues(UICuesEventArgs)

Raises the ChangeUICues event.

(Inherited from Control) OnClick(EventArgs)

Raises the Click event.

(Inherited from Control) OnClientSizeChanged(EventArgs)

(Inherited from Control) OnContextMenuChanged(EventArgs)

(Inherited from Control) OnContextMenuStripChanged(EventArgs)

(Inherited from Control) OnControlAdded(ControlEventArgs)

Raises the ControlAdded event.

(Inherited from Control) OnControlRemoved(ControlEventArgs)

(Inherited from Control) OnCreateControl()

(Inherited from Control) OnCursorChanged(EventArgs)

(Inherited from Control) OnDataSourceChanged(EventArgs)

Raises the DockChanged event.

(Inherited from Control) OnDoubleClick(EventArgs)

Raises the DoubleClick event.

(Inherited from Control) OnDpiChangedAfterParent(EventArgs)

(Inherited from Control) OnDpiChangedBeforeParent(EventArgs)

(Inherited from Control) OnDragDrop(DragEventArgs)

Raises the DragDrop event.

(Inherited from Control) OnDragEnter(DragEventArgs)

Raises the DragEnter event.

(Inherited from Control) OnDragLeave(EventArgs)

Raises the DragLeave event.

(Inherited from Control) OnDragOver(DragEventArgs)

Raises the DragOver event.

(Inherited from Control) OnDrawItem(DrawItemEventArgs)

Raises the DrawItem event.

Raises the DropDown event.

(Inherited from Control) OnEnter(EventArgs)

Raises the Enter event.

(Inherited from Control) OnFontChanged(EventArgs)

Raises the FontChanged event.

Raises the Format event.

(Inherited from ListControl) OnFormatInfoChanged(EventArgs)

(Inherited from ListControl) OnFormatStringChanged(EventArgs)

(Inherited from ListControl) OnFormattingEnabledChanged(EventArgs)

(Inherited from ListControl) OnGiveFeedback(GiveFeedbackEventArgs)

Raises the GiveFeedback event.

(Inherited from Control) OnGotFocus(EventArgs)

Raises the GotFocus event.

(Inherited from Control) OnImeModeChanged(EventArgs)

(Inherited from Control) OnInvalidated(InvalidateEventArgs)

Raises the Invalidated event.

(Inherited from Control) OnKeyDown(KeyEventArgs)

Raises the KeyDown event.

Raises the KeyDown event.

(Inherited from Control) OnKeyPress(KeyPressEventArgs)

Raises the KeyPress event.

Raises the KeyUp event.

(Inherited from Control) OnLayout(LayoutEventArgs)

Raises the Layout event.

(Inherited from Control) OnLeave(EventArgs)

Raises the Leave event.

(Inherited from Control) OnLocationChanged(EventArgs)

(Inherited from Control) OnLostFocus(EventArgs)

Raises the LostFocus event.

(Inherited from Control) OnMeasureItem(MeasureItemEventArgs)

Raises the MeasureItem event.

(Inherited from Control) OnMouseClick(MouseEventArgs)

Raises the MouseClick event.

(Inherited from Control) OnMouseDoubleClick(MouseEventArgs)

(Inherited from Control) OnMouseDown(MouseEventArgs) OnMouseDown(MouseEventArgs)

Raises the MouseDown event.

(Inherited from Control) OnMouseEnter(EventArgs)

Raises the MouseEnter event.

Raises the MouseEnter event.

(Inherited from Control) OnMouseHover(EventArgs)

Raises the MouseHover event.

(Inherited from Control) OnMouseLeave(EventArgs)

Raises the MouseLeave event.

Raises the MouseLeave event.

(Inherited from Control) OnMouseMove(MouseEventArgs)

Raises the MouseMove event.

(Inherited from Control) OnMouseUp(MouseEventArgs)

Raises the MouseUp event.

(Inherited from Control) OnMouseWheel(MouseEventArgs)

Raises the MouseWheel event.

(Inherited from Control) OnMove(EventArgs)

Raises the Move event.

(Inherited from Control) OnNotifyMessage(Message)

Notifies the control of Windows messages.

(Inherited from Control) OnPaddingChanged(EventArgs)

(Inherited from Control) OnPaint(PaintEventArgs)

Raises the Paint event.

(Inherited from Control) OnPaintBackground(PaintEventArgs)

Paints the background of the control.

(Inherited from Control) OnParentBackColorChanged(EventArgs)

Raises the BackgroundImageChanged event when the BackgroundImage property value of the control’s container changes.

(Inherited from Control) OnParentBindingContextChanged(EventArgs)

Raises the BindingContextChanged event when the BindingContext property value of the control’s container changes.

(Inherited from Control) OnParentChanged(EventArgs)

(Inherited from Control) OnParentCursorChanged(EventArgs)

(Inherited from Control) OnParentEnabledChanged(EventArgs)

Raises the EnabledChanged event when the Enabled property value of the control’s container changes.

(Inherited from Control) OnParentFontChanged(EventArgs)

Raises the FontChanged event when the Font property value of the control’s container changes.

(Inherited from Control) OnParentForeColorChanged(EventArgs)

Raises the ForeColorChanged event when the ForeColor property value of the control’s container changes.

(Inherited from Control) OnParentRightToLeftChanged(EventArgs)

Raises the RightToLeftChanged event when the RightToLeft property value of the control’s container changes.

(Inherited from Control) OnParentVisibleChanged(EventArgs)

Raises the VisibleChanged event when the Visible property value of the control’s container changes.

Оцените статью