Skip to main content

BaseGallery.SetItemCheck(GalleryItem, Boolean, Boolean) Method

Checks or unchecks the specified item, while allowing you to specify whether the previously checked items should be unchecked.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public virtual void SetItemCheck(
    GalleryItem item,
    bool newValue,
    bool unselectOtherItems
)

Parameters

Name Type Description
item GalleryItem

A GalleryItem object to be checked/unchecked.

newValue Boolean

A Boolean value that specifies the new value for the item’s GalleryItem.Checked property.

unselectOtherItems Boolean

true to uncheck the previously checked items; false to retain the items’ check states (this option is in effect only when multiple item checking is enabled).

See Also