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

BaseGallery.GetItemByCaption(String) Method

Returns an item that has the specified caption.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public GalleryItem GetItemByCaption(
    string caption
)

#Parameters

Name Type Description
caption String

A string that specifies the caption of the item to be located.

#Returns

Type Description
GalleryItem

A GalleryItem object that has the specified caption. null if no item matching the specified criteria is found.

#Remarks

The GetItemByCaption method searches the gallery for an item whose GalleryItem.Caption property’s value matches the specified caption.

See Also