|
Thanks for you help. Their is one small change in your code.
new Shape( Shapes.Rectangle.Outline, // reuse the outline definition of Rectangle null, // no decorations new ElementTemplate[] { new LineTemplate(5, 5, 95, 5), new LineTemplate(95, 5, 95, 95), new LineTemplate(95, 95, 5, 95), new LineTemplate(5, 95, 5, 5) }, FillRule.EvenOdd, "RectWithTextMargins");
diagram.DefaultShape = Shape.FromId("RectWithTextMargins"); diagram.ShapeText = "test test test test test test test test test "; diagram.ShapeText += diagram.ShapeText + diagram.ShapeText;
Thanks again
|