ShapeNode
Overview
ShapeNode is a class in Aspose.Words for Python.
Inherits from: BaseModel.
ShapeNode describes graphical elements such as images and text boxes, exposing properties like shape_type, dimensions, inline status, and raw image_data.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
type | str | Read | |
shape_type | int | None | Read | Returns the shape’s type identifier, or None if unavailable |
name | str | Read | Provides the shape’s name string |
width | float | None | Read | Returns the shape’s width in points, or None if not set |
height | float | None | Read | Returns the shape’s height in points, or None |
is_inline | bool | None | Read | Indicates whether the shape is inline with text, or None if unknown |
has_image | bool | None | Read | Indicates if the shape contains an image, or None if unknown |
image_data | Optional[ImageData] | Read | Provides the embedded image data object, or None if no image |
text_box | dict[str, Any] | None | Read | Returns a dictionary of text box properties, or None if not a text box |