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

DXEditMenuItem(String, RepositoryItem, EventHandler, Image, Image) Constructor

In This Article

Initializes a new DXEditMenuItem class instance with the specified settings.

Namespace: DevExpress.Utils.Menu

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public DXEditMenuItem(
    string caption,
    RepositoryItem edit,
    EventHandler editValueChanged,
    Image image,
    Image disabled
)

#Parameters

Name Type Description
caption String

A string value that specifies the item’s caption. This parameter initializes the DXMenuItem.Caption property.

edit RepositoryItem

A RepositoryItem descendant that determines the editor’s type and contains its properties. This parameter initializes the DXEditMenuItem.Edit property.

editValueChanged EventHandler

An event handler that will be invoked when the editor’s value is changed. This value is assigned to the DXEditMenuItem.EditValueChanged event.

image Image

An item’s image. This parameter initializes the DXMenuItem.ImageOptions.Image property.

disabled Image

An item’s image to be displayed when the item is disabled. This parameter initializes the DXMenuItem.ImageOptions.ImageDisabled property.

See Also