The requested page is not available for the requested platform. You are viewing the content for Default platform.

ActionBase.SelectionContext Property

Specifies a context of an Action's execution.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

[Browsable(false)]
public ISelectionContext SelectionContext { get; set; }
<Browsable(False)>
Public Property SelectionContext As ISelectionContext

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.

See Also