ActionBase.SelectionContext Property
Specifies a context of an Action‘s execution.
Namespace: DevExpress.ExpressApp.Actions
Assembly: DevExpress.ExpressApp.v24.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
DevExpress.ExpressApp.ISelectionContext | An instance of the class that implements the ISelectionContext interface. |
Remarks
This property is used as a parameter of the Execute event handlers in the ActionBase class descendants (SimpleAction, ParametrizedAction and so on). Use the property’s value to determine whether the current View is root, or to access the current View’s current object or the collection of selected objects. By default, for Actions contained in View Controllers, this property is set to the ViewController.View property value. For Actions from Window Controllers, this property is set to null.
Currently, members of the ISelectionContext interface are implemented in the View class only. If you need to set a new value to this property, use the View class or a custom class that implements the ISelectionContext interface.