Class
ChangeSourceCommand

The change source undoable command.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class ChangeSourceCommand : GraphCommandBase, ICommand

Inheritance: objectGraphCommandBaseChangeSourceCommand

Implements: ICommand

Inherited Members GraphCommandBase.CanExecute(object)GraphCommandBase.NameGraphCommandBase.DiagramItem

Constructors

ChangeSourceCommand(IConnection, IConnector, Point, Action<IConnection>, Action<IConnection>)

Initializes a new instance of the ChangeSourceCommand class.

Declaration

cs-api-definition
public ChangeSourceCommand(IConnection connection, IConnector sourceConnector = null, Point newSourcePoint = null, Action<IConnection> undoAction = null, Action<IConnection> redoAction = null)

Parameters

connection

IConnection

The connection.

sourceConnector

IConnector

The source connector.

newSourcePoint

Point

The new source point.

undoAction

Action<IConnection>

The undo action.

redoAction

Action<IConnection>

The redo action.

Methods

Execute(object)

Executes the specified state.

Declaration

cs-api-definition
public override void Execute(object state = null)

Parameters

state

object

Overrides GraphCommandBase.Execute(object)

Redo()

Redoes this instance.

Declaration

cs-api-definition
public override void Redo()

Overrides GraphCommandBase.Redo()

Undo(object)

Undoes this instance.

Declaration

cs-api-definition
public override void Undo(object state = null)

Parameters

state

object

Overrides GraphCommandBase.Undo(object)