Class
ConnectionManipulationTool

The tool handling the changes of a connection;

  • translating the intermediate connection points
  • adding and removing intermediate connection points
  • connecting or detaching endpoints to/from a shape's connector.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class ConnectionManipulationTool : ToolBase, ITool, IMouseListener, IKeyboardListener

Inheritance: objectToolBaseConnectionManipulationTool

Implements: IKeyboardListenerIMouseListenerITool

Inherited Members ToolBase.DeactivateTool()ToolBase.ActivateTool()ToolBase.OnActivated()ToolBase.OnDeactivated()ToolBase.RestoreCursor()ToolBase.ToolServiceToolBase.GraphToolBase.IsEnabledToolBase.IsActiveToolBase.NameToolBase.InitialPointToolBase.Cursor

Constructors

ConnectionManipulationTool()

Initializes a new instance of the ConnectionManipulationTool class.

Declaration

cs-api-definition
public ConnectionManipulationTool()

Fields

ToolName

The name of the connection manipulation tool.

Declaration

cs-api-definition
public const string ToolName = "ConnectionManipulation Tool"

Field Value

string

Properties

ActiveManipulationPoint

Gets or sets the active manipulation point.

Declaration

cs-api-definition
public IConnectionEditPoint ActiveManipulationPoint { get; set; }

Property Value

IConnectionEditPoint

The active manipulation point.

Methods

Initialize(IGraphServiceLocator)

Initializes the specified service locator.

Declaration

cs-api-definition
public override void Initialize(IGraphServiceLocator serviceLocator)

Parameters

serviceLocator

IGraphServiceLocator

The service locator.

Overrides ToolBase.Initialize(IGraphServiceLocator)

KeyDown(KeyArgs)

Handles the key down event.

Declaration

cs-api-definition
public virtual bool KeyDown(KeyArgs key)

Parameters

key

KeyArgs

Returns

bool

Implements IKeyboardListener.KeyDown(KeyArgs)

KeyUp(KeyArgs)

Handles the key up event.

Declaration

cs-api-definition
public virtual bool KeyUp(KeyArgs key)

Parameters

key

KeyArgs

Returns

bool

Implements IKeyboardListener.KeyUp(KeyArgs)

MouseDoubleClick(PointerArgs)

Handles the mouse double click event.

Declaration

cs-api-definition
public virtual bool MouseDoubleClick(PointerArgs e)

Parameters

e

PointerArgs

The PointerArgs instance containing the event data.

Returns

bool

Implements IMouseListener.MouseDoubleClick(PointerArgs)

MouseDown(PointerArgs)

Handles the mouse-down event.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
public virtual bool MouseDown(PointerArgs e)

Parameters

e

PointerArgs

The PointerArgs instance containing the event data.

Returns

bool

Implements IMouseListener.MouseDown(PointerArgs)

MouseMove(PointerArgs)

Handles the mouse-move event.

Declaration

cs-api-definition
public virtual bool MouseMove(PointerArgs e)

Parameters

e

PointerArgs

The PointerArgs instance containing the event data.

Returns

bool

Implements IMouseListener.MouseMove(PointerArgs)

MouseUp(PointerArgs)

Handles the mouse-up event.

Declaration

cs-api-definition
public virtual bool MouseUp(PointerArgs e)

Parameters

e

PointerArgs

The PointerArgs instance containing the event data.

Returns

bool

Implements IMouseListener.MouseUp(PointerArgs)