BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
var shapes = this.diagram1.Model.Nodes.OfType<FilledPath>();
foreach (FilledPath shape in shapes)
foreach (ConnectorBase connector in shape.EdgesLeaving.OfType<ConnectorBase>())
{
shape.CentralPort.Disconnect(connector.TailEndPoint);
shape.CentralPort.Connect(connector.TailEndPoint);
}
foreach (FilledPath shape in shapes)
foreach (ConnectorBase connector in shape.EdgesEntering.OfType<ConnectorBase>())
{
shape.CentralPort.Disconnect(connector.HeadEndPoint);
shape.CentralPort.Connect(connector.HeadEndPoint);
}
Each connect and disconnect can take up to 250ms, taking one minute for all the FilledPath, calling the Garbage Collection on each connect or disconnect.
Can I speed up the process in some way?
Best regards
Marco