Connect Shapes

Connect Shapes

This section explains how to connect two shapes using Aspose.Diagram for .NET.

Connect Shapes

The ConnectShapesViaConnector method connect two shapes via a connector in the Page class.

The code below shows how to:

  1. Create a diagram from stencil.
  2. Add two rectangles shape to page.
  3. Add a connector shape to page.
  4. Connect the two rectangles with the connector using ConnectShapesViaConnector mothod
  5. save diagram

Connect Shapes Programming Sample

Use the following code in your .NET application to connect shapes using Aspose.Diagram for .NET.