ImageComboBoxItemCollection.GetItem(Object) Method
Returns the item in the current collection that contains the specified value.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v19.1.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
val | Object | A ComboBoxItem value. |
Returns
Type | Description |
---|---|
ImageComboBoxItem | The ImageComboBoxItem object within the current collection containing the specified value. |
Remarks
The method searches the collection and tries to locate the item whose ComboBoxItem.Value property equals to val. If no such item is found, the function returns null. Otherwise, GetItem returns the last item encountered in the collection associated with the specified value.
The method supports the .NET infrastructure and usually you do not need to call it from your code.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetItem(Object) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.