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

TextRange2.BoundHeight Property (Office)

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

Gets the height, in points, of the text bounding box for the specified text. Read-only.


expression. BoundHeight

expression An expression that returns a TextRange2 object.

Return Value



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


This example adds a rounded rectangle to slide one with the same dimensions as the text bounding box in a PowerPoint presentation.

With ActivePresentation.Slides(1).Shapes(1) 
 Set txb = .TextFrame.Text 
 Set roundRect = .AddShape(ppShapeRoundRect, _ 
 txb.BoundLeft, txb.BoundTop, txb.BoundWidth, txb.BoundHeight) 
 roundRect.Fill.Transparency = 0.25 
End With 

See also


TextRange2 Object

Other resources

TextRange2 Object Members

© 2018 Microsoft