Skip to main content

BaseGallery.GetCheckedItems() Method

Returns a list containing the currently checked (selected) gallery items.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public List<GalleryItem> GetCheckedItems()


Type Description

A list that contains checked (selected) gallery items.


Checked items are those whose GalleryItem.Checked properties are set to true. To allow items to be checked by an end-user, use the BaseGallery.ItemCheckMode property.

The GetCheckedItems method returns items that are checked within all gallery groups. If there is no checked item, the method returns an empty list.

To get items that are checked within specific groups, use GalleryItemGroup.GetCheckedItems.

See Also