Aspose::Words::DocumentBuilder::InsertGroupShape method

DocumentBuilder::InsertGroupShape(const System::ArrayPtr<System::SharedPtr<Aspose::Words::Drawing::ShapeBase>>&) method

Groups the shapes passed as a parameter into a new GroupShape node which is inserted into the current position.

System::SharedPtr<Aspose::Words::Drawing::GroupShape> Aspose::Words::DocumentBuilder::InsertGroupShape(const System::ArrayPtr<System::SharedPtr<Aspose::Words::Drawing::ShapeBase>> &shapes)
ParameterTypeDescription
shapesconst System::ArrayPtr<System::SharedPtr<Aspose::Words::Drawing::ShapeBase>>&The list of shapes to be grouped.

Remarks

The position and dimension of the new GroupShape will be calculated automatically.

VML and DML shapes cannot be grouped together.

See Also

DocumentBuilder::InsertGroupShape(double, double, double, double, const System::ArrayPtr<System::SharedPtr<Aspose::Words::Drawing::ShapeBase>>&) method

Groups the shapes passed as a parameter into a new GroupShape node of the specified size which is inserted into the specified position.

System::SharedPtr<Aspose::Words::Drawing::GroupShape> Aspose::Words::DocumentBuilder::InsertGroupShape(double left, double top, double width, double height, const System::ArrayPtr<System::SharedPtr<Aspose::Words::Drawing::ShapeBase>> &shapes)
ParameterTypeDescription
leftdoubleDistance in points from the origin to the left side of the group shape.
topdoubleDistance in points from the origin to the top side of the group shape.
widthdoubleThe width of the group shape in points. A negative value is not allowed.
heightdoubleThe height of the group shape in points. A negative value is not allowed.
shapesconst System::ArrayPtr<System::SharedPtr<Aspose::Words::Drawing::ShapeBase>>&The list of shapes to be grouped.

See Also