CompositeCommand
Class
Represents a composite command.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
C#
public class CompositeCommand : UndoableDelegateCommand, ICommand
Inheritance: objectUndoableDelegateCommandCompositeCommand
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the CompositeCommand class.
C#
public CompositeCommand(string name, Action<object> execute = null, Action<object> undo = null, Predicate<object> canExecute = null)
The name or title of the composite action.
executeAction<object>The execute action.
undoAction<object>The undo action.
canExecutePredicate<object>The CanExecute action.
Properties
Methods
Adds a command to the composite command.
Clears the commands from the composite command.
Executes the specified state.
Executes and undoable action.
C#
public override void Redo()
Overrides:
Removes a command from the composite command.
C#
public CompositeCommand RemoveCommand(ICommand command)
The command.
Returns:Unwinds an undoable action.