底纹对象 (Word)

包含某一对象的底纹属性。

备注

使用 Shading 属性可返回 Shading 对象。 以下示例对活动文档中的第一段应用纯灰色底纹。

ActiveDocument.Paragraphs(1).Shading.Texture = wdTexture10Percent

以下示例对所选内容应用具有不同前景色和背景色的底纹。

With Selection.Shading 
 .Texture = wdTexture20Percent 
 .ForegroundPatternColorIndex = wdBlue 
 .BackgroundPatternColorIndex = wdYellow 
End With

以下示例对活动文档中第一张表格的首行应用竖线纹理。

ActiveDocument.Tables(1).Rows(1).Shading.Texture = _ 
 wdTextureVertical

属性

名称
Application
BackgroundPatternColor
BackgroundPatternColorIndex
Creator
ForegroundPatternColor
ForegroundPatternColorIndex
Parent
Texture

另请参阅

Word 对象模型参考

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。