ClassToolBase
Base class for Diagram tools.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public abstract class ToolBase : ITool
Inheritance: objectToolBase
Derived Classes:
Implements:
Constructors
ToolBase(string)
Initializes a new instance of the ToolBase class.
Properties
Cursor
Gets or sets the cursor.
Declaration
protected Cursor Cursor { get; set; }
Property Value
Cursor
The cursor.
Graph
Gets or sets the graph view (aka surface).
Declaration
public IGraphInternal Graph { get; }
Property Value
The surface.
Implements
InitialPoint
Gets the initial point of the interaction.
Declaration
protected Point? InitialPoint { get; set; }
Property Value
Point?
The initial point on the surface.
IsActive
Gets or sets a value indicating whether this tool is active.
Declaration
public bool IsActive { get; }
Property Value
True if this instance is active; otherwise, false.
Implements
IsEnabled
Gets or sets the IsEnabled.
Name
Gets or sets the layer.
ToolService
Gets or sets the tool service (see ToolService).
Declaration
public IToolService ToolService { get; set; }
Property Value
The tool service.
Implements
Methods
ActivateTool()
Activates the tool.
DeactivateTool()
Deactivates the tool.
Initialize(IGraphServiceLocator)
Initializes this tool.
Declaration
public virtual void Initialize(IGraphServiceLocator serviceLocator)
Parameters
serviceLocator
The locator or controller.
Implements
OnActivated()
Called when tool is IsActive is changed to true.
Declaration
protected virtual void OnActivated()
OnDeactivated()
Called when tool is IsActive is changed to false.
Declaration
protected virtual void OnDeactivated()