Skip to main content
.NET Framework 4.5.2+

SimpleAction(IContainer) Constructor

Creates a new Simple Action and initializes its container.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v22.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public SimpleAction(
    IContainer container
)

Parameters

Name Type Description
container IContainer

An object that includes members of the IContainer interface. This object is assigned to the ActionBase.Controller property.

Remarks

Currently, members of the IContainer interface are implemented in the Controller class only. So, the contianer parameter is used to initialize the ActionBase.Controller property of the created Simple Action.

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SimpleAction(IContainer) constructor.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also