Hi,
I'm trying to build the following shape (Fig. 1), but I'm having trouble to keep its form once the user resizes it (Fig. 2 and 3) due to the fact that the declaration of the shape is relative. How can I keep the line and text left anchor point fixed?
Here's what I used to declare my shape:
MindFusion.Diagramming.Shape shape =
new Shape(//Outlines
new ElementTemplate[]
{
new RoundRectangleTemplate(0, 0, 100, 100, 1)
},
//Decorations
new ElementTemplate[]
{
new LineTemplate(16, 0, 16, 100)
},
// Text area
new ElementTemplate[]
{
new RoundRectangleTemplate(17, 0, 100, 100, 10)
}, System.Drawing.Drawing2D.FillMode.Winding, "MyControl");
Thanks,
Gal.
(Fig. 1)
(Fig. 2)
(Fig. 3)