---
title: "How to Add Group Shape into Word Document"
---

```

## Purpose Summary

This page describes how to insert a group shape programmatically.

```

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](https://reference.aspose.com/words/java/com.aspose.words/groupshape/) class. **Shape** is created separately using the [Shape](https://reference.aspose.com/words/java/com.aspose.words/shape/) class and then added to the [GroupShape](https://reference.aspose.com/words/java/com.aspose.words/groupshape/) object using the [AppendChild](https://reference.aspose.com/words/java/com.aspose.words/compositenode/#appendChild-com.aspose.words.Node) method.

The following code example shows how to add a group shape into a Word document:

{{< gist "aspose-words-gists" "810aad86a7a440f9a364db09322bce53" "add-group-shape.java" >}}

```

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](https://reference.aspose.com/words/java/com.aspose.words/shapetype/) class.

```
