ApiDrawing
Represents the ApiDrawing class.
Methods
| Method | Returns | Description |
|---|---|---|
| Fill | boolean | Sets the fill formatting properties to the current graphic object. |
| GetClassType | "drawing" | Returns a type of the ApiDrawing class. |
| GetFlipH | boolean | null | Get horizontal flip of current drawing. |
| GetFlipV | boolean | null | Get vertical flip of current drawing. |
| GetHeight | EMU | Returns the height of the current drawing. |
| GetLockValue | boolean | Returns the lock value for the specified lock type of the current drawing. |
| GetName | string | Returns the name of the current drawing. |
| GetParentSheet | ApiWorksheet | Returns the parent sheet of the current drawing. |
| GetRotation | number | Returns the rotation angle of the current drawing object. |
| GetWidth | EMU | Returns the width of the current drawing. |
| Select | None | Selects the current graphic object. |
| SetFlipH | boolean | Sets the horizontal flip of the current drawing. |
| SetFlipV | boolean | Sets the vertical flip of the current drawing. |
| SetLockValue | boolean | Sets the lock value to the specified lock type of the current drawing. |
| SetName | boolean | Sets the name of the current drawing. If another drawing with the same name already exists, that drawing's name will be reset to a default auto-generated name. |
| SetOutLine | boolean | Sets the outline properties to the specified graphic object. |
| SetPosition | None | Changes the position for the drawing object. 💡 Please note that the horizontal and vertical offsets are calculated within the limits of the specified column and row cells only. If this value exceeds the cell width or height, another vertical/horizontal position will be set. |
| SetRotation | boolean | Sets the rotation angle to the current drawing object. |
| SetSize | None | Sets a size of the object (image, shape, chart) bounding box. |
| Unselect | boolean | Removes the current drawing from the selection. |