Share via


TextRange2.RotatedBounds Method

Gets the coordinates of the vertices of the text bounding box for the specified text range. Read-only.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Sub RotatedBounds ( _
    <OutAttribute> ByRef X1 As Single, _
    <OutAttribute> ByRef Y1 As Single, _
    <OutAttribute> ByRef X2 As Single, _
    <OutAttribute> ByRef Y2 As Single, _
    <OutAttribute> ByRef X3 As Single, _
    <OutAttribute> ByRef Y3 As Single, _
    <OutAttribute> ByRef x4 As Single, _
    <OutAttribute> ByRef y4 As Single _
)
'Usage
Dim instance As TextRange2
Dim X1 As Single
Dim Y1 As Single
Dim X2 As Single
Dim Y2 As Single
Dim X3 As Single
Dim Y3 As Single
Dim x4 As Single
Dim y4 As Single

instance.RotatedBounds(X1, Y1, X2, Y2, X3, _
    Y3, x4, y4)
void RotatedBounds(
    out float X1,
    out float Y1,
    out float X2,
    out float Y2,
    out float X3,
    out float Y3,
    out float x4,
    out float y4
)

Parameters

  • X1
    Type: System.Single

    Returns the position (in points) of the X coordinate of the first vertex of the bounding box for the text within the specified text range.

  • Y1
    Type: System.Single

    Returns the position (in points) of the Y coordinate of the first vertex of the bounding box for the text within the specified text range.

  • X2
    Type: System.Single

    Returns the position (in points) of the X coordinate of the second vertex of the bounding box for the text within the specified text range.

  • Y2
    Type: System.Single

    Returns the position (in points) of the Y coordinate of the second vertex of the bounding box for the text within the specified text range.

  • X3
    Type: System.Single

    Returns the position (in points) of the X coordinate of the third vertex of the bounding box for the text within the specified text range.

  • Y3
    Type: System.Single

    Returns the position (in points) of the Y coordinate of the third vertex of the bounding box for the text within the specified text range.

  • x4
    Type: System.Single

    Returns the position (in points) of the X coordinate of the fourth vertex of the bounding box for the text within the specified text range.

  • y4
    Type: System.Single

    Returns the position (in points) of the Y coordinate of the fourth vertex of the bounding box for the text within the specified text range.

Remarks

The text bounding box is not the same as the TextFrame2 object. The TextFrame2 object represents the container in which the text can reside. The text bounding box represents the perimeter immediately surrounding the text.

See Also

Reference

TextRange2 Interface

TextRange2 Members

Microsoft.Office.Core Namespace