Class DrawingToolBase
Abstract base class for tools which draw something on the canvas.
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public abstract class DrawingToolBase : PrimaryMouseToolBase, ITool, IMouseListener, IKeyboardListener
Constructors
DrawingToolBase(String)
Initializes a new instance of the DrawingToolBase class.
Declaration
protected DrawingToolBase(string name)
Parameters
System.String
name
|
Properties
AddShapeCommand
Gets or sets the ICommand for adding a shape to the diagram.
Declaration
protected CompositeCommand AddShapeCommand { get; set; }
Property Value
CompositeCommand
|
ControllerService
Gets the IControllerService service.
Declaration
public IControllerService ControllerService { get; }
Property Value
IControllerService
|
DrawingService
Gets the IDrawingService service.
Declaration
public IDrawingService DrawingService { get; }
Property Value
IDrawingService
|
UndoRedoService
Gets the IUndoRedoService service.
Declaration
public IUndoRedoService UndoRedoService { get; }
Property Value
IUndoRedoService
|
Methods
CompleteTool()
Completes the action of this tool.
Declaration
public virtual void CompleteTool()
CreateShape()
KeyDown(KeyArgs)
Handles the key down event.
Declaration
public override bool KeyDown(KeyArgs key)
Parameters
KeyArgs
key
|
Returns
System.Boolean
|
Overrides
MouseDown(PointerArgs)
Handles the mouse-down event.
Declaration
public override bool MouseDown(PointerArgs e)
Parameters
PointerArgs
e
The PointerArgs instance containing the event data. |
Returns
System.Boolean
|
Overrides
OnDeactivated()
Called when tool is IsActive is changed to false.
Declaration
protected override void OnDeactivated()
Overrides
UndoToolAction()
Undoes what this tool has performed.
Declaration
public virtual void UndoToolAction()