Skip to main content
A newer version of this page is available. .

BaseGallery.GetItemByCaption(String) Method

Returns an item that has the specified caption.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v19.2.dll

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