Class DrawingToolBase
Abstract base class for tools which draw something on the canvas.
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public abstract class DrawingToolBase : PrimaryMouseToolBase, ITool, IMouseListener, IKeyboardListener
Constructors
DrawingToolBase(String)
Initializes a new instance of the Drawing
Declaration
protected DrawingToolBase(string name)
Parameters
System.
|
Properties
AddShapeCommand
Gets or sets the System.
Declaration
protected CompositeCommand AddShapeCommand { get; set; }
Property Value
ControllerService
Gets the IController
Declaration
public IControllerService ControllerService { get; }
Property Value
DrawingService
Gets the IDrawing
Declaration
public IDrawingService DrawingService { get; }
Property Value
UndoRedoService
Gets the IUndo
Declaration
public IUndoRedoService UndoRedoService { get; }
Property Value
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
Key
|
Returns
System.
|
Overrides
MouseDown(PointerArgs)
Handles the mouse-down event.
Declaration
public override bool MouseDown(PointerArgs e)
Parameters
Pointer The Pointer |
Returns
System.
|
Overrides
OnDeactivated()
Called when tool is Is
Declaration
protected override void OnDeactivated()
Overrides
UndoToolAction()
Undoes what this tool has performed.
Declaration
public virtual void UndoToolAction()