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
- LineConnector
- OrthogonalConnector
- OrgLineConnector
- PolylineConnector
- Spline
- 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")
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