对于 DropCap 对象:返回或设置首字下沉的字母和段落正文之间的距离(以磅值为单位)。Single 类型,可读写。
LineNumbering 对象:返回或设置行号右边和文档正文左边界之间的距离(以磅值为单位)。Single 类型,可读写。
本示例为活动文档添加行号。行号与正文左边的距离设置为 36 磅(0.5 英寸)。
With ActiveDocument.PageSetup.LineNumbering
.Active = True
.CountBy = 5
.DistanceFromText = 36
End With
本示例为活动文档的第一段的首字母设置首字下沉。距正文为 12 磅。
With ActiveDocument.Paragraphs(1).DropCap
.Enable
.FontName= "Arial"
.Position = wdDropNormal
.DistanceFromText = 12
End With