Class PolyLineConnectorTool
Interactive tool for drawing polyline connector.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Windows.dll
Syntax
public class PolyLineConnectorTool : PolyLineBase, IDisposable
Remarks
Constructors
PolyLineConnectorTool(DiagramController)
Initializes a new instance of the PolyLineConnectorTool class.
Declaration
public PolyLineConnectorTool(DiagramController controller)
Parameters
Type | Name | Description |
---|---|---|
DiagramController | controller | The controller. |
Properties
HeadPossibleConnection
Gets or sets the head possible connection.
Declaration
protected ConnectionPoint HeadPossibleConnection { get; set; }
Property Value
Type | Description |
---|---|
ConnectionPoint | The head possible connection. |
TailPossibleConnection
Gets or sets the tail possible connection.
Declaration
protected ConnectionPoint TailPossibleConnection { get; set; }
Property Value
Type | Description |
---|---|
ConnectionPoint | The tail possible connection. |
Methods
CanCompleteAction(MouseEventArgs)
Determines whether this can complete action.
Declaration
protected override bool CanCompleteAction(MouseEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | evtArgs | The System.Windows.Forms.MouseEventArgs instance containing the event data. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
CheckConnectionPossibility(PointF, out Boolean, Boolean)
Declaration
protected ConnectionPoint CheckConnectionPossibility(PointF ptTest, out bool canConnectWithPort, bool endPoint)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF | ptTest | |
System.Boolean | canConnectWithPort | |
System.Boolean | endPoint |
Returns
Type |
---|
ConnectionPoint |
CompleteAction(PointF[])
Completes Tool Action. Creates specific node and inserts it into document.
Declaration
protected override Node CompleteAction(PointF[] ptsShape)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | ptsShape | points to create polyline derived node from |
Returns
Type | Description |
---|---|
Node | The node. |
Overrides
CreateNode(PointF[])
Creates Polyline derived node.
Declaration
protected override Node CreateNode(PointF[] pts)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | points to create polyline derived node from. |
Returns
Type | Description |
---|---|
Node | The node |
Overrides
CreatePath(PointF[])
Creates Node's GraphicsPath from given points.
Declaration
protected override GraphicsPath CreatePath(PointF[] pts)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | points to create path from |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.GraphicsPath | path created from given points |
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
GetLastPathPointPosition()
Get the last path point position in model coordinates.
Declaration
protected override Point GetLastPathPointPosition()
Returns
Type | Description |
---|---|
System.Drawing.Point | Point in model coordinates. |
Overrides
ProcessMouseDown(MouseEventArgs)
Processes the mouse down event.
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. |