Class RotateTool
Interactive tool for rotating nodes.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Windows.dll
Syntax
public class RotateTool : Tool, IDisposable
Remarks
Constructors
RotateTool(DiagramController)
Initializes a new instance of the RotateTool class.
Declaration
public RotateTool(DiagramController controller)
Parameters
Type | Name | Description |
---|---|---|
DiagramController | controller | The controller. |
RotateTool(DiagramController, Node, Tool)
Initializes a new instance of the RotateTool class.
Declaration
public RotateTool(DiagramController controller, Node nodeRotating, Tool toolPreceding)
Parameters
Type | Name | Description |
---|---|---|
DiagramController | controller | The controller. |
Node | nodeRotating | The rotating node. |
Tool | toolPreceding | The preceding tool. |
Properties
CurrentAngle
Gets the rotated current angle.
Declaration
public float CurrentAngle { get; }
Property Value
Type | Description |
---|---|
System.Single | The current angle. |
RenderHelper
Gets the render helper created from original node.
Declaration
protected Node RenderHelper { get; }
Property Value
Type | Description |
---|---|
Node | The render helper. |
Snapshots
Gets the snapshots hash where key is node and value - caches image.
Declaration
protected Hashtable Snapshots { get; }
Property Value
Type | Description |
---|---|
System.Collections.Hashtable | The snapshots. |
Methods
Abort()
Aborts tool actions.
Declaration
public override Tool Abort()
Returns
Type | Description |
---|---|
Tool | The tool to abort. |
Overrides
CanRotate()
Determines whether this active can rotate.
Declaration
public bool CanRotate()
Returns
Type | Description |
---|---|
System.Boolean |
|
DeactivateTool()
Deactivates the tool.
Declaration
public override void DeactivateTool()
Overrides
Dispose()
Declaration
public override void Dispose()
Overrides
Draw(Graphics)
Draws the specified graphics.
Declaration
public override void Draw(Graphics gfx)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | Graphics to draw on. |
Overrides
OnOriginChanged(ViewOriginEventArgs)
Raise the origin changed event.
Declaration
protected override void OnOriginChanged(ViewOriginEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
ViewOriginEventArgs | evtArgs | The ViewOriginEventArgs instance containing the event data. |
Overrides
ProcessMouseDown(MouseEventArgs)
Processes the mouse down.
Declaration
public override Tool ProcessMouseDown(MouseEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | evtArgs | The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
Type | Description |
---|---|
Tool | The tool. |
Overrides
ProcessMouseMove(MouseEventArgs)
Processes the mouse move.
Declaration
public override Tool ProcessMouseMove(MouseEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | evtArgs | The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
Type | Description |
---|---|
Tool | The tool. |
Overrides
ProcessMouseUp(MouseEventArgs)
Processes the mouse up.
Declaration
public override Tool ProcessMouseUp(MouseEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | evtArgs | The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
Type | Description |
---|---|
Tool | The tool. |