Word.Interfaces.FillFormatLoadOptions interface
表示形状或文本的填充格式。
注解
属性
| $all |
|
| background |
返回一个 |
| foreground |
返回一个 |
| gradient |
指定渐变填充的角度。 值的有效范围为 0 到 359.9。 |
| gradient |
获取渐变颜色类型。 |
| gradient |
返回单色渐变填充的深色或浅色。 值 0 表示黑色与形状的前景色混合以形成渐变。 值为 1 表示白色已混合。 介于 0 和 1 之间的值表示前景色的深色或较浅阴影混合在一起。 |
| gradient |
返回填充的渐变样式。 |
| gradient |
对于大多数渐变填充,以 1 到 4 的整数值的形式返回填充的渐变变体。 |
| is |
指定对象或应用于该对象的格式是否可见。 |
| pattern | 返回一个 |
| preset |
返回填充的预设渐变类型。 |
| preset |
获取预设纹理。 |
| rotate |
指定填充是否随形状一起旋转。 |
| texture |
指定用于平铺纹理填充的对齐方式(坐标网格的原点)。 |
| texture |
指定纹理填充的水平缩放因子。 |
| texture |
返回填充的自定义纹理文件的名称。 |
| texture |
指定纹理与原点的水平偏移量(以磅为单位)。 |
| texture |
指定纹理的垂直偏移量。 |
| texture |
指定纹理是否平铺。 |
| texture |
返回填充的纹理类型。 |
| texture |
将纹理填充的垂直缩放因子指定为介于 0.0 和 1.0 之间的值。 |
| transparency | 将形状的填充透明度指定为介于 0.0 (不透明) 和 1.0 (清除) 之间的值。 |
| type | 获取填充格式类型。 |
属性详细信息
$all
$all为加载选项指定将加载所有标量属性 ((例如Range.address) ,但不加载导航属性 (如 Range.format.fill.color) )。
$all?: boolean;
属性值
boolean
backgroundColor
返回一个 ColorFormat 对象,该对象代表填充的背景色。
backgroundColor?: Word.Interfaces.ColorFormatLoadOptions;
属性值
注解
foregroundColor
返回一个 ColorFormat 对象,该对象代表填充的前景色。
foregroundColor?: Word.Interfaces.ColorFormatLoadOptions;
属性值
注解
gradientAngle
gradientColorType
gradientDegree
返回单色渐变填充的深色或浅色。 值 0 表示黑色与形状的前景色混合以形成渐变。 值为 1 表示白色已混合。 介于 0 和 1 之间的值表示前景色的深色或较浅阴影混合在一起。
gradientDegree?: boolean;
属性值
boolean
注解
gradientStyle
gradientVariant
对于大多数渐变填充,以 1 到 4 的整数值的形式返回填充的渐变变体。
gradientVariant?: boolean;
属性值
boolean
注解
isVisible
pattern
presetGradientType
presetTexture
rotateWithObject
textureAlignment
textureHorizontalScale
textureName
textureOffsetX
textureOffsetY
textureTile
textureType
textureVerticalScale
将纹理填充的垂直缩放因子指定为介于 0.0 和 1.0 之间的值。
textureVerticalScale?: boolean;
属性值
boolean
注解
transparency
将形状的填充透明度指定为介于 0.0 (不透明) 和 1.0 (清除) 之间的值。
transparency?: boolean;
属性值
boolean