TextFrame.MarginBottom 屬性 (Word)

傳回或設定文字框底部與含有文字之形狀內接矩形底部之間的 距離) 點 (。 讀寫 Single。

語法

運算式。MarginBottom

運算式 傳回 TextFrame 物件的運算式。

範例

本範例會在 myDocument 中新增矩形,並在該矩形中新增文字,然後設定文字圖文框的邊界。

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

另請參閱

TextFrame 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。