AddInCommandBinding
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.Object
Autodesk.Revit.UI.AddInCommandBinding
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class AddInCommandBindingThe AddInCommandBinding type exposes the following members.
Properties
Name
Description
Public Property
RevitCommandId
The Revit command Id.
Methods
Name
Description
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Events
Name
Description
Public Event
BeforeExecuted
Occurs before the command associated with this AddInCommandBinding executes.
Public Event
CanExecute
Occurs when the command associated with this AddInCommandBinding initiates a check to determine whether the command can be executed on the command target.
Public Event
Executed
Occurs when the command associated with this AddInCommandBinding executes.