语法
表达式.Background
表达式 一个代表 Document 对象的变量。
说明
只有在 Web 版式视图中才能看到背景。
示例
本示例将活动窗口的 Web 版式视图的背景色设置为浅灰色。
ActiveDocument.ActiveWindow.View.Type = wdWebView let fill = ActiveDocument.Background.Fill fill.Visible = true fill.ForeColor.RGB = 192, 192, 192
本示例将 Web 版式视图的背景位图图像设置为 Bubbles.bmp。
ActiveDocument.ActiveWindow.View.Type = wdWebView ActiveDocument.Background.Fill.UserPicture("C:\\Windows\\Bubbles.bmp")