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

DXMenuCheckItem(String, Boolean, Image, EventHandler) Constructor

In This Article

Initializes a new instance of the DXMenuCheckItem class with the specified caption, image, check state and event handler.

Namespace: DevExpress.Utils.Menu

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

public DXMenuCheckItem(
    string caption,
    bool check,
    Image image,
    EventHandler checkedChanged
)

#Parameters

Name Type Description
caption String

A string that specifies the menu item’s caption. This value is assigned to the DXMenuItem.Caption property.

check Boolean

A Boolean value that specifies the menu item’s check state. This value is assigned to the DXMenuCheckItem.Checked property.

image Image

An image that is displayed within the menu item. This value is assigned to the DXMenuItem.ImageOptions.Image property.

checkedChanged EventHandler

An event handler that will be invoked when the check state is toggled. This value is assigned to the DXMenuCheckItem.CheckedChanged event.

See Also