New to Telerik UI for WinFormsStart a free 30-day trial

Activated when pen drawing action is going to be executed.

Definition

Constructors

Initializes a new instance of the PencilTool class.

C#
public PencilTool()

Fields

The name of the pencil tool.

C#
public const string ToolName = "PencilTool"

Methods

Handles the mouse-down event.

C#
public override bool MouseDown(PointerArgs e)
Parameters:ePointerArgs

The PointerArgs instance containing the event data.

Returns:

bool

Overrides: DrawingToolBase.MouseDown(PointerArgs)

Handles the mouse-move event.

C#
public override bool MouseMove(PointerArgs e)
Parameters:ePointerArgs

The PointerArgs instance containing the event data.

Returns:

bool

Overrides: PrimaryMouseToolBase.MouseMove(PointerArgs)

Handles the mouse-up event.

C#
public override bool MouseUp(PointerArgs e)
Parameters:ePointerArgs

The PointerArgs instance containing the event data.

Returns:

bool

Overrides: PrimaryMouseToolBase.MouseUp(PointerArgs)

Undoes what this tool has performed.

C#
public override void UndoToolAction()

Overrides: DrawingToolBase.UndoToolAction()