BaseGallery.GetItemByCaption(String) Method
In This Article
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 |
---|---|
Gallery |
A Gallery |
#Remarks
The GetItemByCaption method searches the gallery for an item whose GalleryItem.Caption property’s value matches the specified caption.
See Also