Class
DrawCommand

Base class for undoable actions based on delegates.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class DrawCommand : UndoableDelegateCommand, ICommand

Inheritance: objectUndoableDelegateCommandDrawCommand

Implements: ICommand

Inherited Members UndoableDelegateCommand.Undo(object)UndoableDelegateCommand.Redo()UndoableDelegateCommand.Execute(object)UndoableDelegateCommand.CanExecute(object)UndoableDelegateCommand.Name

Constructors

DrawCommand(string, IGeometryShape, bool, DrawingState, DrawingState, Action<object>, Action<object>, Predicate<object>)

Initializes a new instance of the DrawCommand class.

Declaration

cs-api-definition
public DrawCommand(string name, IGeometryShape shape, bool isComplete, DrawingState oldState, DrawingState newState, Action<object> execute, Action<object> undo = null, Predicate<object> canExecute = null)

Parameters

name

string

The name.

shape

IGeometryShape

The shape.

isComplete

bool

If set to true [is complete].

oldState

DrawingState

The old state.

newState

DrawingState

The new state.

execute

Action<object>

The execute.

undo

Action<object>

The undo.

canExecute

Predicate<object>

The can execute.

Properties

IsComplete

Gets a value indicating whether this instance is complete.

Declaration

cs-api-definition
public bool IsComplete { get; }

Property Value

bool

NewState

Gets the new state.

Declaration

cs-api-definition
public DrawingState NewState { get; }

Property Value

DrawingState

OldState

Gets the old state.

Declaration

cs-api-definition
public DrawingState OldState { get; }

Property Value

DrawingState

Shape

Gets the shape.

Declaration

cs-api-definition
public IGeometryShape Shape { get; }

Property Value

IGeometryShape