WindowsForms-docs/WindowsForms/Diagram/Drawing-Tool.md

1.3 KiB

layout title description platform control documentation
post Drawing Tool in Windows Forms Diagram control | Syncfusion Learn about Drawing Tool support in Syncfusion Windows Forms Diagram control, its elements, and more details. windowsforms Diagram ug

Drawing Tool in Windows Forms Diagram

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

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

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

{% tabs %} {% highlight c# %}

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

{% endhighlight %} {% highlight vb %}

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

{% endhighlight %} {% endtabs %}

Drawing of Orthogonal Connector

Please refer to the Connectors sample from Windows Forms control Panel and find navigation path for the Connector sample as link.

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