Hi,
Currently we are using below approach to specify text region of the Shapenode,
ShapeNode.Shape = new MindFusion.Diagramming.Wpf.Shape( Shapes.Rectangle.Outline,// reuse the rectangular shape null,// no decorations new ElementTemplate[]// define text region { new LineTemplate(5, 50, 85, 50), new LineTemplate(85,50, 85, 95), new LineTemplate(95, 85, 5, 95), new LineTemplate(5, 95, 5, 50) }, FillRule.EvenOdd,// doesn't matter here "textOnTheBelowImage"// to access the shape later using Shape.FromId );
Problem: We have a requirement to move the text on a button click, say if left button is clicked then node text should now be disaplayed to the left of the node. Similarly for right,top and bottom.
Please let know what are the different ways to achieve this. Considering we may need to apply this operation on 200 nodes at once - which appoach will suit us.
Could you please provide some code lines to achieve this?
Thanks, Bala
|