PencilTool
Activated when pen drawing action is going to be executed.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public class PencilTool : DrawingToolBase, ITool, IMouseListener, IKeyboardListener
Inheritance: objectToolBasePrimaryMouseToolBaseDrawingToolBasePencilTool
Implements:
Inherited Members
Constructors
Initializes a new instance of the PencilTool class.
public PencilTool()
Fields
Properties
Gets or sets the drawing omission step. This property defines the number of mouse or touch events that are skipped after a successful draw. You can increase the omission step for better performance on tablets.
public int OmissionStep { get; set; }
The drawing omission step.
Methods
Handles the mouse-down event.
public override bool MouseDown(PointerArgs e)
The PointerArgs instance containing the event data.
Returns:Overrides:
Handles the mouse-move event.
public override bool MouseMove(PointerArgs e)
The PointerArgs instance containing the event data.
Returns:Overrides:
Handles the mouse-up event.
public override bool MouseUp(PointerArgs e)
The PointerArgs instance containing the event data.
Returns:Overrides:
Undoes what this tool has performed.
public override void UndoToolAction()
Overrides: