ApiShape
ApiShape is a subclass of ApiDrawing.
Methods
| Method | Returns | Description |
|---|---|---|
| Copy | ApiDrawing | Creates a copy of the specified drawing object. |
| Delete | boolean | Deletes the specified drawing object from the parent. |
| GetClassType | "shape" | Returns the type of the ApiShape class. |
| GetContent | ApiDocumentContent | Returns the shape inner contents where a paragraph or text runs can be inserted. |
| GetFill | ApiFill | null | Gets the fill properties from the current shape. |
| GetGeometry | ApiGeometry | Returns the geometry object from the current shape. |
| GetHeight | EMU | Returns the height of the current drawing. |
| GetLine | ApiStroke | null | Gets the outline properties from the current shape. |
| GetParentPage | ApiPage | Returns the type of the ApiDrawing class. |
| GetPosX | EMU | Gets the x position of the drawing on the page. |
| GetPosY | EMU | Gets the y position of the drawing on the page. |
| GetRotation | number | Returns the rotation angle of the current drawing object. |
| GetWidth | EMU | Returns the width of the current drawing. |
| Select | boolean | Selects the current graphic object. |
| SetFill | boolean | Sets the fill properties to the current shape. |
| SetGeometry | boolean | Sets a custom geometry for the current shape. |
| SetLine | boolean | Sets the outline properties to the current shape. |
| SetPosX | boolean | Sets the x position of the drawing on the page. |
| SetPosY | boolean | Sets the y position of the drawing on the page. |
| SetPosition | boolean | Sets the position of the drawing on the page. |
| SetRotation | boolean | Sets the rotation angle to the current drawing object. |
| SetSize | boolean | Sets the size of the object (image, shape, chart) bounding box. |
| SetVerticalTextAlign | boolean | Sets the vertical alignment to the shape content where a paragraph or text runs can be inserted. |