BaseGallery.GetItemByCaption(String) Method

Returns an item that has the specified caption.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

public GalleryItem GetItemByCaption(
    string caption
)
Public Function GetItemByCaption(
    caption As String
) As GalleryItem

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