Skip to content

Latest commit

 

History

History
55 lines (30 loc) · 1.3 KB

Office.TextRange2.BoundTop.md

File metadata and controls

55 lines (30 loc) · 1.3 KB
title api_name ms.assetid ms.date ms.localizationpriority
TextRange2.BoundTop property (Office)
Office.TextRange2.BoundTop
b225b65e-04a0-1938-9520-ea71eed13b04
01/25/2019
medium

TextRange2.BoundTop property (Office)

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

Syntax

expression.BoundTop

expression An expression that returns a TextRange2 object.

Return value

Single

Remarks

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.

Example

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

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

[!includeSupport and feedback]