InterfaceITool
The base interface for all Diagram tools.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public interface ITool
Properties
Graph
Gets or sets the diagramming surface.
Declaration
IGraphInternal Graph { get; }
Property Value
The surface.
IsActive
Gets or sets a value indicating whether this tool is active. If true the tool is actually performing work via the various mouse or keyboard event handlers. If IsEnabled is false the tool can never be active.
Declaration
bool IsActive { get; }
Property Value
True if this instance is active; otherwise, false.
IsEnabled
Gets or sets a value indicating whether this ITool is enabled.
Declaration
bool IsEnabled { get; set; }
Property Value
True if enabled; otherwise, false.
Name
Gets the name of the tool.
ToolService
Gets or sets the tool manager (see ToolService).
Declaration
IToolService ToolService { get; set; }
Property Value
The tool manager.
Methods
DeactivateTool()
Deactivates the tool.
Initialize(IGraphServiceLocator)
Initializes the specified service locator.
Declaration
void Initialize(IGraphServiceLocator serviceLocator)
Parameters
serviceLocator
The service locator.