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

A tool which allows you to position and add text to your diagram.

Definition

Constructors

Initializes a new instance of the TextTool class.

C#
public TextTool()

Fields

The name of the Text tool.

C#
public const string ToolName = "Text Tool"

Methods

Handles the key down event.

C#
public override bool KeyDown(KeyArgs key)
Parameters:keyKeyArgsReturns:

bool

Overrides: PrimaryMouseToolBase.KeyDown(KeyArgs)

Handles the mouse-down event.

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

The PointerArgs instance containing the event data.

Returns:

bool

Overrides: PrimaryMouseToolBase.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)

Called when tool is IsActive is changed to false.

C#
protected override void OnDeactivated()

Overrides: ToolBase.OnDeactivated()