Background 属性

       

返回一个 Shape 对象,该对象表示指定文档的背景图像。只读。

注意   只有在 Web 版式视图中才能看到背景。

示例

本示例将活动窗口的 Web 版式视图背景色设为浅灰色。

ActiveDocument.ActiveWindow.View.Type = wdWebView
With ActiveDocument.Background.Fill
    .Visible = True
    .ForeColor.RGB = RGB(192, 192, 192)
End With

本示例将 Web 版式视图的背景位图图像设为 Bubbles.bmp。

ActiveDocument.ActiveWindow.View.Type = wdWebView
ActiveDocument.Background.Fill.UserPicture _
    PictureFile:="C:\Windows\Bubbles.bmp"