SurroundFooter 属性

       

如果该属性值为 True,则页面边框环绕文档的页脚。Boolean 类型,可读写。

expression.SurroundFooter

expression   必需。该表达式返回一个 Borders 集合对象。

示例

本示例设置活动文档中第一节的页面边框格式,使页面边框环绕该节中每个页面的页眉和页脚。

With ActiveDocument.Sections(1).Borders
    .SurroundFooter = True
    .SurroundHeader = True
End With

本示例为第一节中的每一页添加艺术型页面边框。该页面边框不环绕页眉和页脚。

With ActiveDocument.Sections(1)
    .Borders.SurroundFooter = False
    .Borders.SurroundHeader = False
    For Each aBord In .Borders
        aBord.ArtStyle = wdArtPeople
        aBord.ArtWidth = 15
    Next aBord
End With