New to Telerik UI for WinForms? Start a free 30-day trial

IToolService

Interface

Describes the members of the tool service. This service collects tools like the selection tool or the drawing tool.

Definition

Properties

Gets the active tool.

C#
ITool ActiveTool { get; }

Gets the graph internal.

C#
IGraphInternal Graph { get; }

Gets or sets whether the alt-key is pressed.

C#
bool IsAltDown { get; set; }

Gets or sets a value indicating whether the control key is pressed.

C#
bool IsControlDown { get; set; }

Gets or sets a value indicating whether the mouse left button is pressed.

C#
bool IsMouseDown { get; set; }

Gets or sets the primary tool.

C#
string PrimaryTool { get; set; }
Property Value:

The primary tool.

Methods

Activates the primary tool.

C#
void ActivatePrimaryTool()

Activates the tool.

C#
ITool ActivateTool(string toolName)
Parameters:toolNamestring

Layer of the tool.

Returns:

ITool

Returns the activated tool.

Deactivates the tool.

C#
bool DeactivateTool(ITool tool)
Parameters:toolITool

The tool.

Returns:

bool

Finds a tool with the specified name.

C#
ITool FindTool(string name)
Parameters:namestring

The name.

Returns:

ITool