Hallo mindfusion team,
is there a known issue with LinkTextStyle.OverLongestSegment ?
I tried this short Code with a new created Windows Forms Project and Diagram and DiagramView on it I got a Objekt not initialized exception ... in program.cs Application.run (new Form...).
the problem is the line with link.TextStyle = LinkTextStyle.OverLongestSegment;.
On Button-click i used this code:
ShapeNode node = diagram1.Factory.CreateShapeNode(10, 10, 20, 13);
node.Text = "werwerwer";
ShapeNode node2 = diagram1.Factory.CreateShapeNode(10, 50, 20, 13);
node2.Text = "bla bla";
DiagramLink link = diagram1.Factory.CreateDiagramLink(diagram1.Nodes[0], diagram1.Nodes[1]);
link.Text = "fwerwewre";
link.TextStyle = LinkTextStyle.OverLongestSegment;
link.TextBrush = new MindFusion.Drawing.SolidBrush(Color.Blue);
Thanks for help!