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