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

ExceptionDescription
RuntimeError(Proxy error(InvalidOperationException))The text frame is not associated with a geometry shape.

See Also