---
title: "כיצד להוסיף Group עקבו אחרי Word File"
---

לפעמים צריך להוסיף group shape לתוך מסמך Word. כזה group shape מורכב ממספר צורות.

In In In Microsoft Word, ניתן להוסיף במהירות group shape באמצעות Group פקודה / Button ניתן להעביר צורה אישית בקבוצה בנפרד.

In In In Aspose.Words קל מאוד להוסיף group shape באמצעות שימוש [GroupShape](https://reference.aspose.com/words/python-net/aspose.words.drawing/groupshape/) מעמד. הצורה נוצרת בנפרד [Shape](https://reference.aspose.com/words/python-net/aspose.words.drawing/shape/) השיעור ולאחר מכן הוסיף [GroupShape](https://reference.aspose.com/words/python-net/aspose.words.drawing/groupshape/) אובייקט באמצעות [append_child](https://reference.aspose.com/words/python-net/aspose.words/compositenode/append_child/) שיטה.

דוגמה לקוד הבא מראה כיצד להוסיף group shape לתוך מסמך Word:

{{< gist "aspose-words-gists" "e9d8f984dac599756ccb4a64b8c79768" "Examples-DocsExamples-DocsExamples-Programming with Documents-Working with Graphic Elements-working_with_shapes-AddGroupShape.py" >}}

```

להלן חלק `Shape` סוגים נתמך Aspose.Words. לרשימה מלאה, בבקשה [aspose.words.drawing.ShapeType](https://reference.aspose.com/words/python-net/aspose.words.drawing/shapetype/) המונחים

- [Rectangle](https://reference.aspose.com/words/python-net/aspose.words.drawing/shapetype/#rectangle)
- [RoundRectangle](https://reference.aspose.com/words/python-net/aspose.words.drawing/shapetype/#round_rectangle)
- [Ellipse](https://reference.aspose.com/words/python-net/aspose.words.drawing/shapetype/#ellipse)
- [Diamond](https://reference.aspose.com/words/python-net/aspose.words.drawing/shapetype/#diamond)
- [Triangle](https://reference.aspose.com/words/python-net/aspose.words.drawing/shapetype/#triangle)
- [RightTriangle](https://reference.aspose.com/words/python-net/aspose.words.drawing/shapetype/#right_triangle)
- [Parallelogram](https://reference.aspose.com/words/python-net/aspose.words.drawing/shapetype/#parallelogram)
- [Trapezoid](https://reference.aspose.com/words/python-net/aspose.words.drawing/shapetype/#trapezoid)
- [Hexagon](https://reference.aspose.com/words/python-net/aspose.words.drawing/shapetype/#hexagon)
- [Octagon](https://reference.aspose.com/words/python-net/aspose.words.drawing/shapetype/#octagon)

```
