BaseGallery.GetItemByCaption(String) Method
Returns an item that has the specified caption.
Namespace: DevExpress.XtraBars.Ribbon.Gallery
Assembly: DevExpress.XtraBars.v25.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
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