Interface IToolService
Describes the members of the tool service. This service collects tools like the selection tool or the drawing tool.
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public interface IToolService : IMouseListener, IKeyboardListener
Properties
ActiveTool
Graph
IsAltDown
Gets or sets whether the alt-key is pressed.
Declaration
bool IsAltDown { get; set; }
Property Value
System.Boolean
|
IsControlDown
Gets or sets a value indicating whether the control key is pressed.
Declaration
bool IsControlDown { get; set; }
Property Value
System.Boolean
|
IsMouseDown
Gets or sets a value indicating whether the mouse left button is pressed.
Declaration
bool IsMouseDown { get; set; }
Property Value
System.Boolean
|
PrimaryTool
Gets or sets the primary tool.
Declaration
string PrimaryTool { get; set; }
Property Value
System.String
The primary tool. |
Methods
ActivatePrimaryTool()
Activates the primary tool.
Declaration
void ActivatePrimaryTool()
ActivateTool(String)
Activates the tool.
Declaration
ITool ActivateTool(string toolName)
Parameters
System.String
toolName
Layer of the tool. |
Returns
ITool
Returns the activated tool. |
DeactivateTool(ITool)
Deactivates the tool.
Declaration
bool DeactivateTool(ITool tool)
Parameters
ITool
tool
The tool. |
Returns
System.Boolean
|
FindTool(String)
Finds a tool with the specified name.
Declaration
ITool FindTool(string name)
Parameters
System.String
name
The name. |
Returns
ITool
|