insertShape method
Contents
[
Hide
]insertShape(shapeType, width, height)
Inserts inline shape with specified type and size.
insertShape(shapeType: Aspose.Words.Drawing.ShapeType, width: number, height: number)
| Parameter | Type | Description |
|---|---|---|
| shapeType | ShapeType | The shape type to insert into the document. |
| width | number | The width of the shape in points. |
| height | number | The height of the shape in points. |
Returns
The shape node that was inserted.
insertShape(shapeType, horzPos, left, vertPos, top, width, height, wrapType)
Inserts free-floating shape with specified position, size and text wrap type.
insertShape(shapeType: Aspose.Words.Drawing.ShapeType, horzPos: Aspose.Words.Drawing.RelativeHorizontalPosition, left: number, vertPos: Aspose.Words.Drawing.RelativeVerticalPosition, top: number, width: number, height: number, wrapType: Aspose.Words.Drawing.WrapType)
| Parameter | Type | Description |
|---|---|---|
| shapeType | ShapeType | The shape type to insert into the document |
| horzPos | RelativeHorizontalPosition | Specifies where the horizontal distance to the shape is measured from. |
| left | number | Distance in points from the origin to the left side of the shape. |
| vertPos | RelativeVerticalPosition | Specifies where the vertical distance to the shape is measured from. |
| top | number | Distance in points from the origin to the top side of the shape. |
| width | number | The width of the shape in points. |
| height | number | The height of the shape in points. |
| wrapType | WrapType | Specifies how to wrap text around the shape. |
Returns
The shape node that was inserted.
See Also
- module Aspose.Words
- class DocumentBuilder