|
Hi there, 1-I want to select node other than its center point too)like selecting and dragging any where on that node) -For this i am creating the node by dragging it on diagram 2-How can I stop the edges of the node from getting rounded, it gets curved when i open the saved diagram second time -For this the node creation code is given below var customShapeP2 = new Shape(new[] { new LineTemplate(0, 0, 0, 100), new LineTemplate(0, 100, 100, 100), new LineTemplate(100, 100, 100, 0), new LineTemplate(100, 0, 0, 0) }, 0, "position"); customShapeP2.Id = "textBlock-textBlock"; ShapeNode shapeNode = diagram.Factory.CreateShapeNode(0, 0, 318 * width, 20, customShapeP2); shapeNode.TextPadding = th; shapeNode.FontSize = 9;
Rect rectImg; rectImg = shapeNode.Shape.ImageRectangle; rectImg.Height = 20; rectImg.Width = 318 * width; Rect rectBound = shapeNode.Bounds; rectBound.Height = 20; rectBound.Width = 318 * width; shapeNode.Bounds = rectBound;
|