Interface
IToolService

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

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public interface IToolService : IMouseListener, IKeyboardListener

Inherited Members IMouseListener.MouseDown(PointerArgs)IMouseListener.MouseDoubleClick(PointerArgs)IMouseListener.MouseMove(PointerArgs)IMouseListener.MouseUp(PointerArgs)IKeyboardListener.KeyDown(KeyArgs)IKeyboardListener.KeyUp(KeyArgs)

Properties

ActiveTool

Gets the active tool.

Declaration

cs-api-definition
ITool ActiveTool { get; }

Property Value

ITool

Graph

Gets the graph internal.

Declaration

cs-api-definition
IGraphInternal Graph { get; }

Property Value

IGraphInternal

IsAltDown

Gets or sets whether the alt-key is pressed.

Declaration

cs-api-definition
bool IsAltDown { get; set; }

Property Value

bool

IsControlDown

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

Declaration

cs-api-definition
bool IsControlDown { get; set; }

Property Value

bool

IsMouseDown

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

Declaration

cs-api-definition
bool IsMouseDown { get; set; }

Property Value

bool

PrimaryTool

Gets or sets the primary tool.

Declaration

cs-api-definition
string PrimaryTool { get; set; }

Property Value

string

The primary tool.

Methods

ActivatePrimaryTool()

Activates the primary tool.

Declaration

cs-api-definition
void ActivatePrimaryTool()

ActivateTool(string)

Activates the tool.

Declaration

cs-api-definition
ITool ActivateTool(string toolName)

Parameters

toolName

string

Layer of the tool.

Returns

ITool

Returns the activated tool.

DeactivateTool(ITool)

Deactivates the tool.

Declaration

cs-api-definition
bool DeactivateTool(ITool tool)

Parameters

tool

ITool

The tool.

Returns

bool

FindTool(string)

Finds a tool with the specified name.

Declaration

cs-api-definition
ITool FindTool(string name)

Parameters

name

string

The name.

Returns

ITool