Ungroup

ShapeCollection.Ungroup method

取消组合形状项目。

public void Ungroup(GroupShape group)
范围类型描述
groupGroupShape组形状。

评论

如果组形状被另一个组形状分组,则不会执行任何操作。

例子


[C#]
//添加第一个形状
shapes.AddRectangle(2, 0, 2, 0, 50, 50);
//添加第二个形状
shapes.AddRectangle(6, 0, 2, 0, 30, 30);

//团体
Shape[] shapesArr = new Shape[] { shapes[0], shapes[1] };
GroupShape groupShape = shapes.Group(shapesArr);

//取消组合
shapes.Ungroup(groupShape);

也可以看看