GetTextRect

TextFrame.GetTextRect method

Gets the text rectangle defined by the geometry of the parent shape.

public RectangleF GetTextRect()

Return Value

A RectangleF that defines the text area.

Exceptions

exceptioncondition
InvalidOperationExceptionThe text frame is not associated with a geometry shape.

Remarks

The rectangle coordinates are relative to the top-left corner of the parent shape.

See Also