Class
ManipulationTool

Tool handling the resizing and rotation of items.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
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

ManipulationTool(string)

Initializes a new instance of the ManipulationTool class.

Declaration

cs-api-definition
public ManipulationTool(string toolName)

Parameters

toolName

string

Fields

ToolNameNESW

Declaration

cs-api-definition
public const string ToolNameNESW = "Resizing ToolNESW"

Field Value

string

ToolNameNWSE

Declaration

cs-api-definition
public const string ToolNameNWSE = "Resizing ToolNWSE"

Field Value

string

ToolNameRotation

Declaration

cs-api-definition
public const string ToolNameRotation = "Rotation Tool"

Field Value

string

ToolNameSENW

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "SENW")]
public const string ToolNameSENW = "Resizing ToolSENW"

Field Value

string

ToolNameSWNE

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "SWNE")]
public const string ToolNameSWNE = "Resizing ToolSWNE"

Field Value

string

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)

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