Word.Interfaces.ShadingData interface

一个接口,用于描述通过调用 shading.toJSON()返回的数据。

属性

backgroundPatternColor

指定对象背景的颜色。 可以采用“#RRGGBB”格式或颜色名称提供值。

foregroundPatternColor

指定对象的前景的颜色。 可以采用“#RRGGBB”格式或颜色名称提供值。

texture

指定对象的底纹纹理。 若要详细了解如何应用背景(如纹理),请参阅在 Word 中添加、更改或删除背景色。

属性详细信息

backgroundPatternColor

指定对象背景的颜色。 可以采用“#RRGGBB”格式或颜色名称提供值。

backgroundPatternColor?: string;

属性值

string

注解

[ API 集:WordApi 1.6 ]

foregroundPatternColor

指定对象的前景的颜色。 可以采用“#RRGGBB”格式或颜色名称提供值。

foregroundPatternColor?: string;

属性值

string

注解

[ API 集:WordApiDesktop 1.1 ]

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"

注解

[ API 集:WordApiDesktop 1.1 ]