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

Tool handling the resizing and rotation of items.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class ManipulationTool : ToolBase, ITool, IMouseListener

Inheritance: objectToolBaseManipulationTool

Implements: IMouseListenerITool

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

Constructors

Initializes a new instance of the ManipulationTool class.

C#
public ManipulationTool(string toolName)
Parameters:toolNamestring

Fields

C#
public const string ToolNameNESW = "Resizing ToolNESW"
C#
public const string ToolNameNWSE = "Resizing ToolNWSE"
C#
public const string ToolNameRotation = "Rotation Tool"
C#
public const string ToolNameSENW = "Resizing ToolSENW"
C#
public const string ToolNameSWNE = "Resizing ToolSWNE"

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