Ungroup
ShapeCollection.Ungroup method
取消组合形状项目。
public void Ungroup(GroupShape group)
范围 | 类型 | 描述 |
---|---|---|
group | GroupShape | 组形状。 |
评论
如果组形状被另一个组形状分组,则不会执行任何操作。
例子
[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);
也可以看看
- class GroupShape
- class ShapeCollection
- 命名空间 Aspose.Cells.Drawing
- 部件 Aspose.Cells