Skip to main content

DXMenuCheckItem(String, Boolean, Image, EventHandler) Constructor

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.1.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.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