返回指定文本框的文本文本边界框高度,以磅为单位。只读。Single 类型。
本示例在当前演示文稿的第一张幻灯片中添加一个圆角矩形,该矩形与第一个形状的文本边界框的大小相同。
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