Thanks for your answer.
Setting this.diagram.ExteriorBrush = new MindFusion.Drawing.SolidBrush("#FFA9A9A9"); is ok.
But right now i want to create a arrow shape by code:
Shape mys = new Shape( new ElementTemplate[] { new LineTemplate(0, 0, 30, -30), new LineTemplate(30,-30, 60, 0), new LineTemplate(60, 0, 45, 0), new LineTemplate(45, 0, 45, 50), new LineTemplate(45, 50, 15, 50), new LineTemplate(15, 50, 15, 0), }, FillMode.Alternate, "Custom");
ShapeNode b = this.diagram.Factory.CreateShapeNode(new RectangleF(10, 10, 40, 20),mys); b.AllowIncomingLinks = false; b.AllowOutgoingLinks = false; b.ShadowColor = Color.Transparent; }
The arrow appears ok but when i selected it, i noticed the arrow its not located in the center of shapenode because the coordinates given are relative to the left upper corner. How can i resolve this?
|