Skip to main content

DiagramCommandsBase Methods

Serves as a base for classes providing access to Diagram commands.
Name Description
CanExecute(DiagramCommand) Gets whether the specified command can be executed in its current state.
CanExecute<T>(DiagramCommand<T>, T) Gets whether the specified command can be executed in its current state.
Equals(Object, Object) static Determines 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.
Execute(DiagramCommand, IMouseArgs) Executes the specified diagram command.
Execute<T>(DiagramCommand<T>, T, IMouseArgs) Executes the specified diagram command.
GetCommandHotkeys(DiagramCommandBase, Object)
GetHashCode() Serves as the default hash function. Inherited from Object.
GetKeyDownCommand(Key, ModifierKeys) static Gets the command associated with pressing down the specified key or key combination.
GetKeyUpCommand(Key, ModifierKeys) static Gets the command associated with releasing the specified key or key combination.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
RegisterHandlers(Action<IHandlersRegistrator>, Boolean) Allows you to override the default commands.
RegisterHotKeys(Action<IHotKeysRegistrator>) Allows you to clear the existing shortcuts or define new ones.
ToString() Returns a string that represents the current object. Inherited from Object.
UpdateCommands(IEnumerable<DiagramCommandBase>)
See Also