Back to Devexpress

ActionBase Members

expressappframework-devexpress-dot-expressapp-dot-actions-dot-actionbase-dot-underscore-members.md

latest19.9 KB
Original Source

ActionBase Members

The base class for Actions.

Fields

NameDescription
AnyCaptionSpecifies the caption for the ActionBase.TargetViewId property value which means “Any view ID”. By default, this field value is set to “Any”.
RequireMultipleObjectsContextReturns a context for enabling/disabling the Action whose ActionBase.SelectionDependencyType property is set to RequireMultipleObjects. Used for the Action’s ActionBase.Enabled list item that has the true value, if one or more objects are selected in the current View, and false , if no object is selected.
RequireSingleObjectContextReturns a context for enabling/disabling the Action whose ActionBase.SelectionDependencyType property is set to RequireSingleObjects. Used for the Action’s ActionBase.Enabled list item that has the true value, if a single object is selected in the current View, and false , if more than one object is selected.

Properties

NameDescription
ActionMeaningSpecifies whether an Action is represented by an accept, cancel or ordinal button in a Window Forms application’s pop-up Windows.
ActiveGets a collection of reason/value pairs used to determine or change the Action‘s active state. The resulting state determines the Action’s visibility.
ApplicationProvides access to an XafApplication object that can be used to manage an application.
AvailableIdentifies whether the Action is enabled and active.
CanRaiseEvents protectedGets a value indicating whether the component can raise an event. Inherited from Component.
CaptionSpecifies an Action‘s caption.
CategorySpecifies an Action‘s category.
ConfirmationMessageSpecifies the confirmation message displayed when an end-user executes an Action.
ContainerGets the IContainer that contains the Component. Inherited from Component.
ControllerProvides access to an Action‘s Controller.
DesignMode protectedGets a value that indicates whether the Component is currently in design mode. Inherited from Component.
DiagnosticInfoSpecifies information on an Action. This information is appended to the information on the remaining Actions and their Controllers and displayed via the DiagnosticInfo Action.
EnabledProvides access to a collection of key/value pairs used to determine an Action‘s enabled/disabled state. A Disabled Action is visible in the UI, but it is grayed out and cannot be executed.
Events protectedGets the list of event handlers that are attached to this Component. Inherited from Component.
HasImageIndicates whether an Action has an image assigned to it.
IdSpecifies an Action‘s identifier.
ImageNameSpecifies a name of the image displayed for an Action.
IsDisposedGets a value indicating whether an Action has been disposed of.
ModelGets the Action‘s settings.
PaintStyleSpecifies the Action‘s paint style.
QuickAccessSpecifies whether the current Action is accessible via the Quick Access Toolbar (this toolbar is available when the Ribbon UI is used).
SelectionContextSpecifies a context of an Action‘s execution.
SelectionDependencyTypeSpecifies a context for enabling an Action.
ShortcutDefines the keyboard shortcut that executes the current Action.
SiteGets or sets the ISite of the Component. Inherited from Component.
TagProvides access to the object that contains data about the Action.
TargetObjectsCriteriaSpecifies a logical expression (criteria) for enabling an Action.
TargetObjectsCriteriaModeSpecifies whether all the currently selected objects must satisfy the ActionBase.TargetObjectsCriteria criteria to make an Action enabled.
TargetObjectTypeSpecifies the type of the object(s) that must be represented by the current View to provide an Action activation.
TargetViewIdSpecifies the identifier of the View for which the Action is activated, or a semicolon-separated list of identifiers if the Action targets multiple Views.
TargetViewNestingSpecifies whether the View, for which an Action is intended, must be root, nested or any.
TargetViewTypeSpecifies the type of the View, for which an Action is intended.
ToolTipSpecifies a tooltip for an Action.
TypeOfViewSpecifies the type of the View for which an Action is intended.

Methods

NameDescription
AssignFrom(ActionBase)Shares a specified Action’s settings to the current Action.
AssignInfo(IModelAction)Applies settings stored in the specified Application Model’s node to the current Action.
BeginUpdate()Prevents an Action from being updated until the ActionBase.EndUpdate method is called.
Dispose()Releases all resources used by the Component. Inherited from Component.
EndUpdate()Unlocks an Action after a call to the ActionBase.BeginUpdate method, and causes an immediate update.
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether the specified object is equal to the current object. Inherited from Object.
GetFormattedConfirmationMessage()Returns a formatted confirmation message displayed when executing an Action.
GetHashCode()Serves as the default hash function. Inherited from Object.
GetLifetimeService()Retrieves the current lifetime service object that controls the lifetime policy for this instance. Inherited from MarshalByRefObject.
GetService(Type) protectedReturns an object that represents a service provided by the Component or by its Container. Inherited from Component.
GetTotalToolTip()Returns the Action‘s total tooltip. Intended for internal use.
GetTotalToolTip(String)Returns the Action‘s total tooltip. Intended for internal use.
GetType()Gets the Type of the current instance. Inherited from Object.
InitializeLifetimeService()Obtains a lifetime service object to control the lifetime policy for this instance. Inherited from MarshalByRefObject.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protectedCreates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
ToString()Returns an Action‘s textual representation.

Events

NameDescription
ChangedOccurs after one of the current ActionBase object’s properties has been changed.
CustomGetFormattedConfirmationMessageOccurs when the ActionBase.GetFormattedConfirmationMessage method is executed.
CustomGetTotalTooltipOccurs when an Action‘s ToolTip is calculated.
CustomizeControlFires after the control is initialized. Allows you to customize the control.
DisposedOccurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
DisposingOccurs when disposing of an Action.
ExecuteCanceledOccurs after execution of the Action has been cancelled.
ExecuteCompletedOccurs after all actions implemented in the Execute, ActionBase.Executed and ActionBase.ProcessCreatedView event handlers have been performed.
ExecutedOccurs after executing an Action.
ExecutingOccurs before an end-user performs the operation that leads to raising an Action‘s Execute event.
ProcessCreatedViewOccurs after the ActionBase.Executed event.

See Also

ActionBase Class

DevExpress.ExpressApp.Actions Namespace