Skip to main content

BaseGallery.GetItemByCaption(String) Method

Returns an item that has the specified caption.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v24.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