Borders.DistanceFromBottom 属性 (Word)
返回或设置文本与下边框之间的间距 (以磅为单位)。 读/写 Long。
语法
expression。 DistanceFromBottom
表达 一个代表“Borders”对象的变量。
备注
对页面边框使用本属性,可以设置之间的文本和底端页面边框或页面的下边缘和底部页面边框之间的空间距离。 距离距离取决于 DistanceFrom 属性的值。
示例
本示例为活动文档的第一个段落添加边框,并将文本与下边框的距离设置为 6 磅。
With ActiveDocument.Paragraphs(1).Borders
.Enable = True
.DistanceFromBottom = 6
End With
本示例为 Sales.doc 中的每张表格添加边框。然后将文本与上下边框的距离设置为 3 磅,将文本与左右边框的距离设置为 6 磅。
Dim tableLoop As Table
For Each tableLoop In Documents("Sales.doc").Tables
With tableLoop.Borders
.OutsideLineStyle = wdLineStyleSingle
.OutsideLineWidth = wdLineWidth150pt
.DistanceFromBottom = 3
.DistanceFromTop = 3
.DistanceFromLeft = 6
.DistanceFromRight = 6
End With
Next tableLoop
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。