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