Could you tell me how can I group this kind of shapes using code? (Shapes.png)
Here is my current code:
- Code: Select all
private void CenterLayout(RectangleF box)
{
var shape = shapeBuilder.CreateArrow(new RectangleF(box.Left + box.Width * 1/2,box.Top,1,box.Height));
shape.Rotation = 180;
var shape1 = shapeBuilder.CreateArrow(new RectangleF(box.Left + box.Width * 1/6, box.Top + box.Height * 1/3, box.Width * 1/3, box.Height * 2/3));
shape1.Rotation = 180;
var shape2 = shapeBuilder.CreateArrow(new RectangleF(box.Left + box.Width * 1/2, box.Top + box.Height * 1 / 3, box.Width * 1 / 3, box.Height * 2/3));
shape2.Rotation = 235;
shapeBuilder.CreateLine(new RectangleF(shape.Left - box.Width * 1 / 4, box.Top + box.Height, box.Width * 1 / 2, 1));
textLabels = new List<IAutoShape>
{
shapeBuilder.CreateTextAbowLeftArrow(shape),
shapeBuilder.CreateTextAbowLeftArrow(shape1),
shapeBuilder.CreateTextAbowRightArrow(shape2)
};
}