TextRange.RotatedBounds Method
PowerPoint Developer Reference |
Returns the coordinates of the vertices of the text bounding box for the specified text range.
Syntax
expression.RotatedBounds(X1, Y1, X2, Y2, X3, Y3, X4, Y4)
expression A variable that represents a TextRange object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
X1, Y1 | Required | Single | Returns the position (in points) of the first vertex of the bounding box for the text within the specified text range. |
X2, Y2 | Required | Single | Returns the position (in points) of the second vertex of the bounding box for the text within the specified text range. |
X3, Y3 | Required | Single | Returns the position (in points) of the third vertex of the bounding box for the text within the specified text range. |
X4, Y4 | Required | Single | Returns the position (in points) of the fourth vertex of the bounding box for the text within the specified text range. |
Example
This example uses the values returned by the arguments of the RotatedBounds method to draw a freeform that has the dimensions of the text bounding box for the third word in the text range in shape one on slide one in the active presentation.
Visual Basic for Applications |
---|
|
See Also