Word) (Paragraph.Shading 属性

返回一个 Shading 对象,该对象引用指定段落的底纹格式。

语法

expression. Shading

表达式是必需的。 一个代表“Paragraph”对象的变量。

示例

以下示例对所选内容的第一段应用黄色底纹。

With Selection.Paragraphs(1).Shading 
 .Texture = wdTexture12Pt5Percent 
 .BackgroundPatternColorIndex = wdYellow 
 .ForegroundPatternColorIndex = wdBlack 
End With

另请参阅

段落对象

支持和反馈

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