Type: BCS.Sym3.IActionService
Action service Remarks: Operator only.
Methods
GetActionByDisplayName(System.String)
Gets an action definition by its display name
- Parameters:
- name:
- displayname: Display name of the action definition to search for
- Example:
This example shows you how to get an action definition by its display name
var actionDisplayMessage = Project.ActionService.GetActionByDisplayName("Display Message");
NewActionInstance(BCS.Sym3.IActionDefinition)
Creates a new instance of an action definition
- Parameters:
- ad: Action definition
NewActionInstance(System.String)
Creates a new action instance using the disply name of an action definition
- Parameters:
- displayName: Display name of the action definition
- Example:
This example shows you how to assign an action to a button:
var wnd = Project.Windows["Window1"]
wnd["Button1"].OnInactiveAction = Project.ActionService.NewActionInstance("Display Message")