New to Telerik UI for WinFormsStart a free 30-day trial

Tool handling the translation of items.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class DraggingTool : ToolBase, ITool, IMouseListener

Inheritance: objectToolBaseDraggingTool

Implements: IMouseListenerITool

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

Constructors

Initializes a new instance of the DraggingTool class.

C#
public DraggingTool()

Fields

The name of the dragging tool.

C#
public const string ToolName = "Dragging Tool"

Methods

Initializes the specified service locator.

C#
public override void Initialize(IGraphServiceLocator serviceLocator)
Parameters:serviceLocatorIGraphServiceLocator

The service locator.

Overrides: ToolBase.Initialize(IGraphServiceLocator)

Handles the mouse double click event.

C#
public virtual bool MouseDoubleClick(PointerArgs e)
Parameters:ePointerArgs

The PointerArgs instance containing the event data.

Returns:

bool

Implements: IMouseListener.MouseDoubleClick(PointerArgs)

Handles the mouse-down event.

C#
public virtual bool MouseDown(PointerArgs e)
Parameters:ePointerArgs

The PointerArgs instance containing the event data.

Returns:

bool

Implements: IMouseListener.MouseDown(PointerArgs)

Handles the mouse-move event.

C#
public virtual bool MouseMove(PointerArgs e)
Parameters:ePointerArgs

The PointerArgs instance containing the event data.

Returns:

bool

Implements: IMouseListener.MouseMove(PointerArgs)

Handles the mouse-up event.

C#
public virtual bool MouseUp(PointerArgs e)
Parameters:ePointerArgs

The PointerArgs instance containing the event data.

Returns:

bool

Implements: IMouseListener.MouseUp(PointerArgs)

Called when tool is IsActive is changed to true.

C#
protected override void OnActivated()

Overrides: ToolBase.OnActivated()

Called when tool is IsActive is changed to false.

C#
protected override void OnDeactivated()

Overrides: ToolBase.OnDeactivated()