以磅为单位返回或设置从文本框左边界到包含文本的形状中内接矩形左边界的距离。可读写。Single 类型。
本示例在 myDocument
中添加一个矩形,向矩形中添加文本,然后设置文本框架的边距。
Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes.AddShape(msoShapeRectangle, _
0, 0, 250, 140).TextFrame
.TextRange.Text = "Here is some test text"
.MarginBottom = 0
.MarginLeft = 10
.MarginRight = 0
.MarginTop = 20
End With