Back to Devexpress

BaseGallery.GetItemByCaption(String) Method

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-gallery-dot-basegallery-dot-getitembycaption-x28-system-dot-string-x29.md

latest1.8 KB
Original Source

BaseGallery.GetItemByCaption(String) Method

Returns an item that has the specified caption.

Namespace : DevExpress.XtraBars.Ribbon.Gallery

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Parameters

NameTypeDescription
captionString

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

|

Returns

TypeDescription
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

Caption

BaseGallery Class

BaseGallery Members

DevExpress.XtraBars.Ribbon.Gallery Namespace