Class
PathTool

Activated when Path drawing action is going to be executed.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class PathTool : DrawingToolBase, ITool, IMouseListener, IKeyboardListener

Inheritance: objectToolBasePrimaryMouseToolBaseDrawingToolBasePathTool

Implements: IKeyboardListenerIMouseListenerITool

Inherited Members DrawingToolBase.KeyDown(KeyArgs)DrawingToolBase.CompleteTool()DrawingToolBase.CreateShape()DrawingToolBase.ControllerServiceDrawingToolBase.DrawingServiceDrawingToolBase.UndoRedoServiceDrawingToolBase.AddShapeCommandPrimaryMouseToolBase.Initialize(IGraphServiceLocator)PrimaryMouseToolBase.KeyUp(KeyArgs)PrimaryMouseToolBase.MouseDoubleClick(PointerArgs)PrimaryMouseToolBase.SelectionServicePrimaryMouseToolBase.HitTestServicePrimaryMouseToolBase.ServiceLocatorPrimaryMouseToolBase.HitItemPrimaryMouseToolBase.ActiveConnectorToolBase.DeactivateTool()ToolBase.ActivateTool()ToolBase.RestoreCursor()ToolBase.ToolServiceToolBase.GraphToolBase.IsEnabledToolBase.IsActiveToolBase.NameToolBase.InitialPointToolBase.Cursor

Constructors

PathTool()

Initializes a new instance of the PathTool class.

Declaration

cs-api-definition
public PathTool()

Fields

ToolName

The name of the path tool.

Declaration

cs-api-definition
public const string ToolName = "PathTool"

Field Value

string

Methods

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 DrawingToolBase.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)

OnActivated()

Called when tool is activated.

Declaration

cs-api-definition
protected override void OnActivated()

Overrides ToolBase.OnActivated()

OnDeactivated()

Called when tool is deactivated.

Declaration

cs-api-definition
protected override void OnDeactivated()

Overrides DrawingToolBase.OnDeactivated()

UndoToolAction()

Undoes what this tool has performed.

Declaration

cs-api-definition
public override void UndoToolAction()

Overrides DrawingToolBase.UndoToolAction()