Class
RectangleSelectionTool

This base implementation of a tool serves for shape creation on the basis of a drawn rubber band on the canvas. Not every shape is created in this way, certain shape have a fixed size or are polygonal.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class RectangleSelectionTool : ToolBase, ITool, IMouseListener

Inheritance: objectToolBaseRectangleSelectionTool

Implements: IMouseListenerITool

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

Constructors

RectangleSelectionTool()

Initializes a new instance of the RectangleSelectionTool class.

Declaration

cs-api-definition
public RectangleSelectionTool()

Fields

ToolName

The name of the rectangle selection tool.

Declaration

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

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 MouseDown event.

Declaration

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

Parameters

e

PointerArgs

The PointerArgs instance containing the event data.

Returns

bool

Implements IMouseListener.MouseDown(PointerArgs)

MouseMove(PointerArgs)

Handles the MouseMove 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 MouseUp 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)