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.
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public class RectangleSelectionTool : ToolBase, ITool, IMouseListener
Constructors
RectangleSelectionTool()
Initializes a new instance of the RectangleSelectionTool class.
Declaration
public RectangleSelectionTool()
Fields
ToolName
The name of the rectangle selection tool.
Declaration
public const string ToolName = "RectangleSelection Tool"
Field Value
System.String
|
Methods
Initialize(IGraphServiceLocator)
Initializes the specified service locator.
Declaration
public override void Initialize(IGraphServiceLocator serviceLocator)
Parameters
IGraphServiceLocator
serviceLocator
The service locator. |
Overrides
MouseDoubleClick(PointerArgs)
Handles the mouse double click event.
Declaration
public virtual bool MouseDoubleClick(PointerArgs e)
Parameters
PointerArgs
e
The PointerArgs instance containing the event data. |
Returns
System.Boolean
|
Implements
MouseDown(PointerArgs)
Handles the MouseDown event.
Declaration
public virtual bool MouseDown(PointerArgs e)
Parameters
PointerArgs
e
The PointerArgs instance containing the event data. |
Returns
System.Boolean
|
Implements
MouseMove(PointerArgs)
Handles the MouseMove event.
Declaration
public virtual bool MouseMove(PointerArgs e)
Parameters
PointerArgs
e
The PointerArgs instance containing the event data. |
Returns
System.Boolean
|
Implements
MouseUp(PointerArgs)
Handles the MouseUp event.
Declaration
public virtual bool MouseUp(PointerArgs e)
Parameters
PointerArgs
e
The PointerArgs instance containing the event data. |
Returns
System.Boolean
|