How to Add Group Shape into a Word Document
Contents
[
Hide
]
Sometimes you need to add a group shape into a Word document. Such a group shape consists of multiple shapes.
In Microsoft Word, you can quickly add a group shape using the Group command/button. An individual shape in a group can be moved separately.
In Aspose.Words it is very easy to add a group shape using the GroupShape class. Shape is created separately using the Shape class and then added to the GroupShape object using the AppendChild method.
The following code example shows how to add a group shape into a Word document:
Below are some of the Shape
types supported in Aspose.Words:
- Rectangle
- RoundRectangle
- RoundRectangle
- Ellipse
- Diamond
- Triangle
- RightTriangle
- Parallelogram
- Trapezoid
- Hexagon
- Octagon
For complete list, please check the ShapeType class.