TextFrame.MarginBottom 属性 (Word)TextFrame.MarginBottom Property (Word)

返回或设置文本框架的底部之间的包含文本的形状的内接矩形底部的距离 (以磅为单位)。Returns or sets the distance (in points) between the bottom of the text frame and the bottom of the inscribed rectangle of the shape that contains the text. 读/写单个Read/write Single .


expressionexpression. MarginBottom

_表达式_一个返回TextFrame对象的表达式。expression An expression that returns a 'TextFrame' object.


本示例在 myDocument 中添加一个矩形,向矩形中添加文本,然后设置文本框架的边距。This example adds a rectangle to myDocument, adds text to the rectangle, and then sets the margins for the text frame.

Set myDocument = ActiveDocument 
With myDocument.Shapes.AddShape(msoShapeRectangle, _ 
 0, 0, 250, 140).TextFrame 
 .TextRange.Text = "Here is some test text" 
 .MarginBottom = 0 
 .MarginLeft = 100 
 .MarginRight = 0 
 .MarginTop = 20 
End With

另请参阅See also

TextFrame 对象TextFrame Object