This object represents a binding between a Revit command and one or more handlers which
override the behavior of the command in Revit.
Inheritance Hierarchy
System.ObjectAutodesk.Revit.UI.AddInCommandBinding
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public class AddInCommandBinding
The AddInCommandBinding type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() | RevitCommandId | The Revit command Id. |
Methods
Name | Description | |
---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object) |
Events
Name | Description | |
---|---|---|
![]() | BeforeExecuted | Occurs before the command associated with this AddInCommandBinding executes. |
![]() | CanExecute | Occurs when the command associated with this AddInCommandBinding initiates a check to determine whether the command can be executed on the command target. |
![]() | Executed | Occurs when the command associated with this AddInCommandBinding executes. |