Hi Blanca,
We suspect that, you have used a Syncfusion.Windows.Forms.Diagram’s “Polyline” to activate a tool and create a polyline node which is deprecated and it is not marked as serializable. So we suggest you to use Syncfusion.Windows.Forms.Diagram’s “PolylineNode” to create a polyline node to achieve your requirement. please refer to the below code example.
Code example:
[C#]
public class CustomPolyLineTool : PolyLineTool
{
public CustomPolyLineTool(DiagramController controller)
: base(controller)
{
this.Name = "CustomPolyLineTool";
}
protected override Node CreateNode(System.Drawing.PointF[] pts)
{
//Use Syncfusion.Windows.Forms.Diagram.PolylineNode instead of Syncfusion.Windows.Forms.Diagram.Polyline...
Syncfusion.Windows.Forms.Diagram.PolylineNode polyline = new Syncfusion.Windows.Forms.Diagram.PolylineNode(pts);
return polyline;
}
}
Regards,
Naganathan K G