Drawing Tool in Windows Forms Diagram

WinForms Diagram control now provides a drawing tool to draw different types of connectors dynamically and connector types are listed below.

Available Drawing Tools

  1. LineConnector
  2. OrthogonalConnector
  3. OrgLineConnector
  4. PolylineConnector
  5. Spline
  6. BezierCurve

Activating a Drawing Tool

For example, the OrgLineConnectorTool is used to draw the Org line connector dynamically.

// Activates the Org line connector tool.
diagram1.Controller.ActivateTool("OrgLineConnectorTool");
'Activates the Org line connector tool.
diagram1.Controller.ActivateTool("OrgLineConnectorTool")

Drawing of Orthogonal Connector

Sample

Please refer to the Connectors sample from the Windows Forms Control Panel and navigate to the Connector sample using the path below.

Sample: Windows Forms Control Panel > Diagram > Getting Started > Connectors