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.
|
IsControlDown
Gets or sets a value indicating whether the control key is pressed.
Declaration
bool IsControlDown { get; set; }
Property Value
System.
|
IsMouseDown
Gets or sets a value indicating whether the mouse left button is pressed.
Declaration
bool IsMouseDown { get; set; }
Property Value
System.
|
PrimaryTool
Gets or sets the primary tool.
Declaration
string PrimaryTool { get; set; }
Property Value
System. The primary tool. |
Methods
ActivatePrimaryTool()
Activates the primary tool.
Declaration
void ActivatePrimaryTool()
ActivateTool(String)
Activates the tool.
Declaration
ITool ActivateTool(string toolName)
Parameters
System. 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.
|
FindTool(String)
Finds a tool with the specified name.
Declaration
ITool FindTool(string name)
Parameters
System. The name. |