Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BaseGallery.GetCheckedItem() Method

Returns the checked (selected) gallery item (if only one item is selected).

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public GalleryItem GetCheckedItem()

#Returns

Type Description
GalleryItem

The checked (selected) gallery item; otherwise, null (Nothing in VB).

#Remarks

The GetCheckedItem method returns the gallery item that is the only checked item in the BaseGallery. If the BaseGallery has no checked items or more then one checked item, this method returns null (Nothing in VB).

See Also