Skip to main content
.NET Framework 4.5.2+

SimpleAction(Controller, String, String, SimpleActionExecuteEventHandler) Constructor

Creates a new instance of the SimpleAction class and initializes its properties.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public SimpleAction(
    Controller owner,
    string id,
    string category,
    SimpleActionExecuteEventHandler execute
)

Parameters

Name Type Description
owner Controller

A Controller object that represents a Controller to which the created SimpleAction is added. This object is assigned to the ActionBase.Controller property.

id String

A string value representing the created Simple’s identifier. This value is assigned to the ActionBase.Id property.

category String

A string value that represents a category of the created Simple Action. This value is assigned to the ActionBase.Category property and used to map this Action to the appropriate Action Container.

execute SimpleActionExecuteEventHandler

A SimpleActionExecuteEventHandler object that represents a handler for the SimpleAction.Execute event of the created Simple Action.

Remarks

This method is used to create SimpleAction objects at runtime. Via this method, a new SimpleAction object is created, added to the specified Controller and initialized. In addition, the SimpleAction.Execute event is handled by the handler passed as the Execute parameter.

See Also