Class LineSegmentTool
Interactive tool for moving the segments of a line.
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Windows.dll
Syntax
public class LineSegmentTool : Tool, IDisposable
Remarks
Constructors
LineSegmentTool(DiagramController, Tool, PathNode)
Initializes a new instance of the LineSegmentTool class.
Declaration
public LineSegmentTool(DiagramController controller, Tool toolPreceding, PathNode nodePath)
Parameters
Type | Name | Description |
---|---|---|
DiagramController | controller | The controller. |
Tool | toolPreceding | The tool preceding. |
PathNode | nodePath | The node path. |
Methods
CanMove()
Determines whether this segment can move.
Declaration
public bool CanMove()
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
GetMoveOffset(PointF, PointF)
Get the move offset.
Declaration
public SizeF GetMoveOffset(PointF ptEnd, PointF ptStart)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF | ptEnd | The end point position. |
System.Drawing.PointF | ptStart | The start point position. |
Returns
Type | Description |
---|---|
System.Drawing.SizeF | Size of the offset. |
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)
Start segment move action
Declaration
public override Tool ProcessMouseDown(MouseEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | evtArgs | mouse event arg |
Returns
Type | Description |
---|---|
Tool | base tools |
Overrides
ProcessMouseMove(MouseEventArgs)
On Move segment
Declaration
public override Tool ProcessMouseMove(MouseEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | evtArgs | mouse event arg |
Returns
Type | Description |
---|---|
Tool | base tools |
Overrides
ProcessMouseUp(MouseEventArgs)
End segment move action
Declaration
public override Tool ProcessMouseUp(MouseEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | evtArgs | mouse event arg |
Returns
Type | Description |
---|---|
Tool | previous tool |
Overrides
Implements
System.IDisposable