DXMenuItem(String, EventHandler) Constructor

Initializes a new instance of the DXMenuItem class with the specified caption and Click event handler

Namespace: DevExpress.Utils.Menu

Assembly: DevExpress.Utils.v20.1.dll

Declaration

public DXMenuItem(
    string caption,
    EventHandler click
)
Public Sub New(
    caption As String,
    click As EventHandler
)

Parameters

Name Type Description
caption String

A string that specifies the text displayed by the menu item. This value is assigned to the DXMenuItem.Caption property.

click EventHandler

An event handler that will be invoked when the menu item is clicked or selected. This value is assigned to the DXMenuItem.Click event.

See Also