Class HandleMoveTool
Inherits from Tool class. Used for moving node handles: Control point, EndPoint etc.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Windows.dll
Syntax
public class HandleMoveTool : Tool, IDisposable
Constructors
HandleMoveTool(DiagramController, Tool, PathNode, IHandle)
Initializes a new instance of the HandleMoveTool class.
Declaration
public HandleMoveTool(DiagramController controller, Tool toolPrevious, PathNode nodeHandleOwner, IHandle handleMoving)
Parameters
| Type | Name | Description |
|---|---|---|
| DiagramController | controller | The controller. |
| Tool | toolPrevious | The tool previous. |
| PathNode | nodeHandleOwner | The node handle owner. |
| IHandle | handleMoving | The handle moving. |
Properties
LastMousePosition
Gets or sets the last mouse position.
Declaration
protected PointF LastMousePosition { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.PointF | The last mouse position. |
MovingHandle
Gets or sets the moving handle.
Declaration
protected IHandle MovingHandle { get; set; }
Property Value
| Type | Description |
|---|---|
| IHandle | The moving handle. |
RenderHelper
Gets the rendering helper node.
Declaration
public PathNode RenderHelper { get; }
Property Value
| Type | Description |
|---|---|
| PathNode | The rendering helper. |
Remarks
Node clone of current node moving for tracking.
Methods
CheckConnectionPossibility(PointF, out Boolean)
Checks for connection possibility.
Declaration
protected ConnectionPoint CheckConnectionPossibility(PointF ptTest, out bool canConnectWithPort)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.PointF | ptTest | The point. |
| System.Boolean | canConnectWithPort | true, if the port can accept connection |
Returns
| Type | Description |
|---|---|
| ConnectionPoint | The connection point |
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 move 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 move 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 move tool. |