Class
ConnectionTool

The tool used to create a new connection.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class ConnectionTool : PrimaryMouseToolBase, ITool, IMouseListener, IKeyboardListener

Inheritance: objectToolBasePrimaryMouseToolBaseConnectionTool

Implements: IKeyboardListenerIMouseListenerITool

Inherited Members PrimaryMouseToolBase.Initialize(IGraphServiceLocator)PrimaryMouseToolBase.KeyUp(KeyArgs)PrimaryMouseToolBase.MouseDoubleClick(PointerArgs)PrimaryMouseToolBase.SelectionServicePrimaryMouseToolBase.HitTestServicePrimaryMouseToolBase.ServiceLocatorPrimaryMouseToolBase.HitItemPrimaryMouseToolBase.ActiveConnectorToolBase.DeactivateTool()ToolBase.ActivateTool()ToolBase.OnActivated()ToolBase.OnDeactivated()ToolBase.RestoreCursor()ToolBase.ToolServiceToolBase.GraphToolBase.IsEnabledToolBase.IsActiveToolBase.NameToolBase.InitialPointToolBase.Cursor

Constructors

ConnectionTool()

Initializes a new instance of the ConnectionTool class.

Declaration

cs-api-definition
public ConnectionTool()

Fields

ToolName

The name of the connection tool.

Declaration

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

Field Value

string

Properties

ActiveConnection

The connection being manipulated (created).

Declaration

cs-api-definition
protected IConnection ActiveConnection { get; set; }

Property Value

IConnection

Methods

KeyDown(KeyArgs)

Handles the key down event.

Declaration

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

Parameters

key

KeyArgs

Returns

bool

Overrides PrimaryMouseToolBase.KeyDown(KeyArgs)

MouseDown(PointerArgs)

Handles the mouse-down event.

Declaration

cs-api-definition
public override bool MouseDown(PointerArgs e)

Parameters

e

PointerArgs

The PointerArgs instance containing the event data.

Returns

bool

Overrides PrimaryMouseToolBase.MouseDown(PointerArgs)

MouseMove(PointerArgs)

Handles the mouse-move event.

Declaration

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

Parameters

e

PointerArgs

The PointerArgs instance containing the event data.

Returns

bool

Overrides PrimaryMouseToolBase.MouseMove(PointerArgs)

MouseUp(PointerArgs)

Handles the mouse-up event.

Declaration

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

Parameters

e

PointerArgs

The PointerArgs instance containing the event data.

Returns

bool

Overrides PrimaryMouseToolBase.MouseUp(PointerArgs)