Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ImageComboBoxItemCollection.GetItem(Object) Method

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

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public virtual ImageComboBoxItem GetItem(
    object val
)

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

See Also