Back to Devexpress

ImageComboBoxItemCollection.GetItem(Object) Method

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-imagecomboboxitemcollection-dot-getitem-x28-system-dot-object-x29.md

latest2.0 KB
Original Source

ImageComboBoxItemCollection.GetItem(Object) Method

Returns the item in the current collection that contains the specified value.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual ImageComboBoxItem GetItem(
    object val
)
vb
Public Overridable Function GetItem(
    val As Object
) As ImageComboBoxItem

Parameters

NameTypeDescription
valObject

A ComboBoxItem value.

|

Returns

TypeDescription
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.

See Also

ImageComboBoxItemCollection Class

ImageComboBoxItemCollection Members

DevExpress.XtraEditors.Controls Namespace