返回或设置文本与左边框的距离(以磅为单位)。Long 类型,可读写。
注意 为页面边框设置本属性时,既可以设置为文本与左边框的距离,也可以设置为页面左边缘与左边框的距离。选择何种为参照,取决于 DistanceFrom 属性的值。
本示例为活动文档中的每个图文框添加边框,并且将图文框与边框的距离设置为 5 磅。
Dim frameLoop As Frame
For Each frameLoop In ActiveDocument.Frames
    With frameLoop.Borders
        .Enable = True
        .DistanceFromLeft = 5
        .DistanceFromRight = 5
        .DistanceFromTop = 5
        .DistanceFromBottom = 5
    End With
Next frameLoop
本示例为活动文档的第一个段落添加边框,并将文本与左边框的距离设置为 3 磅。
With ActiveDocument.Paragraphs(1).Borders
    .Enable = True
    .DistanceFromLeft = 3
End With