SimpleAction(Controller, String, String) Constructor

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

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v18.1.dll

Declaration

public SimpleAction(
    Controller owner,
    string id,
    string category
)
Public Sub New(
    owner As Controller,
    id As String,
    category As String
)

Parameters

Type Name Description
Controller owner

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

String id

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

String category

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.

Via this method, a Simple Action is created and added to the Controller specified by the owner parameter.

Usually, you do not need to create SimpleAction objects manually. Instead, use the parent Controller's Designer to add Actions. For details, refer to the Actions topic.

See Also