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

NameTypeAccessDescription
typestrRead
shape_typeint | NoneReadReturns the shape’s type identifier, or None if unavailable
namestrReadProvides the shape’s name string
widthfloat | NoneReadReturns the shape’s width in points, or None if not set
heightfloat | NoneReadReturns the shape’s height in points, or None
is_inlinebool | NoneReadIndicates whether the shape is inline with text, or None if unknown
has_imagebool | NoneReadIndicates if the shape contains an image, or None if unknown
image_dataOptional[ImageData]ReadProvides the embedded image data object, or None if no image
text_boxdict[str, Any] | NoneReadReturns a dictionary of text box properties, or None if not a text box