Word.Interfaces.ShadingUpdateData interface
用于更新对象上的 Shading
数据的接口,用于 在 中使用 shading.set({ ... })
。
属性
background |
指定对象背景的颜色。 可以采用“#RRGGBB”格式或颜色名称提供值。 |
foreground |
指定对象的前景的颜色。 可以采用“#RRGGBB”格式或颜色名称提供值。 |
texture | 指定对象的底纹纹理。 若要详细了解如何应用背景(如纹理),请参阅在 Word 中添加、更改或删除背景色。 |
属性详细信息
backgroundPatternColor
指定对象背景的颜色。 可以采用“#RRGGBB”格式或颜色名称提供值。
backgroundPatternColor?: string;
属性值
string
注解
foregroundPatternColor
指定对象的前景的颜色。 可以采用“#RRGGBB”格式或颜色名称提供值。
foregroundPatternColor?: string;
属性值
string
注解
texture
指定对象的底纹纹理。 若要详细了解如何应用背景(如纹理),请参阅在 Word 中添加、更改或删除背景色。
texture?: Word.ShadingTextureType | "DarkDiagonalDown" | "DarkDiagonalUp" | "DarkGrid" | "DarkHorizontal" | "DarkTrellis" | "DarkVertical" | "LightDiagonalDown" | "LightDiagonalUp" | "LightGrid" | "LightHorizontal" | "LightTrellis" | "LightVertical" | "None" | "Percent10" | "Percent12Pt5" | "Percent15" | "Percent20" | "Percent25" | "Percent30" | "Percent35" | "Percent37Pt5" | "Percent40" | "Percent45" | "Percent5" | "Percent50" | "Percent55" | "Percent60" | "Percent62Pt5" | "Percent65" | "Percent70" | "Percent75" | "Percent80" | "Percent85" | "Percent87Pt5" | "Percent90" | "Percent95" | "Solid";
属性值
Word.ShadingTextureType | "DarkDiagonalDown" | "DarkDiagonalUp" | "DarkGrid" | "DarkHorizontal" | "DarkTrellis" | "DarkVertical" | "LightDiagonalDown" | "LightDiagonalUp" | "LightGrid" | "LightHorizontal" | "LightTrellis" | "LightVertical" | "None" | "Percent10" | "Percent12Pt5" | "Percent15" | "Percent20" | "Percent25" | "Percent30" | "Percent35" | "Percent37Pt5" | "Percent40" | "Percent45" | "Percent5" | "Percent50" | "Percent55" | "Percent60" | "Percent62Pt5" | "Percent65" | "Percent70" | "Percent75" | "Percent80" | "Percent85" | "Percent87Pt5" | "Percent90" | "Percent95" | "Solid"