AlwaysInFront 属性

       

如果在文档文本之前显示页面边框,则本属性为 TrueBoolean 类型,可读写。

示例

本示例在活动文档中第一节的文档文本之前添加艺术型页面边框。

Dim borderLoop as Border

With ActiveDocument.Sections(1)
    .Borders.AlwaysInFront = True
    For Each borderLoop In .Borders
        With borderLoop
            .ArtStyle = wdArtPeople
            .ArtWidth = 15
        End With
    Next borderLoop
End With