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.v24.2.dll

Declaration

public List<GalleryItem> GetCheckedItems()

Returns

Type Description
List<GalleryItem>

A list that contains checked (selected) gallery items.

Remarks

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetCheckedItems() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also