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.

语法Syntax

表达式expression. MarginBottom

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

示例Example

本示例在 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

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.