Table of contents
TOC
Collapse the table of content
Expand the table of content

TextRange.BoundHeight Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Returns the height (in points) of the text bounding box for the specified text frame. Read-only.

Syntax

expression. BoundHeight

expression A variable that represents a TextRange object.

Return Value

Single

Example

This example adds a rounded rectangle to slide one in the active presentation. The rectangle has the same dimensions as the text bounding box for shape one.

With Application.ActivePresentation.Slides(1).Shapes
    Set tr = .Item(1).TextFrame.TextRange
    Set roundRect = .AddShape(msoShapeRoundedRectangle, _
        tr.BoundLeft, tr.BoundTop, tr.BoundWidth, tr.BoundHeight)
End With

With roundRect.Fill
    .ForeColor.RGB = RGB(255, 0, 128)
    .Transparency = 0.75
End With

See also

Concepts

TextRange Object

© 2018 Microsoft