You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Ports/ActionofPorts/UpdatePorts)
354
354
355
+
## How to specify connection direction to port
356
+
357
+
The [ConnectionDirection](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.Port.html#Syncfusion_Blazor_Diagram_Port_ConnectionDirection) property of a port allows users to specify the direction in which a connector should establish a connection. This can be either to the port incoming or from the port outgoing.
358
+
359
+
The following code example how to set connection direction to port.
// Set the source and target point of the connector.
424
+
SourceID = "node2",
425
+
TargetID = "node1",
426
+
SourcePortID = "port2",
427
+
TargetPortID = "port1",
428
+
// Type of the connector segments.
429
+
Type = ConnectorSegmentType.Orthogonal
430
+
};
431
+
connectors.Add(Connector1);
432
+
}
433
+
}
434
+
```
435
+
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Ports/ActionofPorts/PortDirection)
0 commit comments