get_text_rect method
get_text_rect(self)
Gets the text rectangle defined by the geometry of the parent shape.
Returns
A RectangleF that defines the text area.
def get_text_rect(self):
...
Remarks
The rectangle coordinates are relative to the top-left corner of the parent shape.
Exceptions
| Exception | Description |
|---|---|
| RuntimeError(Proxy error(InvalidOperationException)) | The text frame is not associated with a geometry shape. |
See Also
- class
TextFrame - class
RectangleF - module
aspose.slides - library
Aspose.Slides