Class VertexMoveTool
Vertext Move Tool.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Windows.dll
Syntax
public class VertexMoveTool : Tool, IDisposable
Constructors
VertexMoveTool(DiagramController, Tool, PathNode, Int32)
Initializes a new instance of the VertexMoveTool class.
Declaration
public VertexMoveTool(DiagramController controller, Tool toolPreceding, PathNode nodeVertexContainer, int movingVertexIndex)
Parameters
Type | Name | Description |
---|---|---|
DiagramController | controller | The controller. |
Tool | toolPreceding | The tool preceding. |
PathNode | nodeVertexContainer | The node vertex container. |
System.Int32 | movingVertexIndex | Index of the moving vertex. |
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. |
RenderHelper
Gets the render helper created from original node.
Declaration
protected PathNode RenderHelper { get; }
Property Value
Type | Description |
---|---|
PathNode | The render helper. |
Methods
CanMoveVertex()
Determines whether this active node vertex can move vertex.
Declaration
public bool CanMoveVertex()
Returns
Type | Description |
---|---|
System.Boolean |
|
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
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 vertext 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 vertext 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 vertext move tool. |