MsoFillFormatHelper
Contents
[
Hide
]MsoFillFormatHelper class
Represents fill formatting for a shape.
class MsoFillFormatHelper;
Properties
Property | Type | Description |
---|---|---|
foreColor | Color | Gets and sets the fill fore color. |
foreColorTransparency | number | Returns or sets the degree of fore color of the specified fill as a value from 0.0 (opaque) through 1.0 (clear). |
backColor | Color | Gets and sets the file back color. |
imageData | Uint8Array | Gets and sets the Texture and Picture fill data. |
texture | TextureType | Readonly. Gets the texture fill type. |
isVisible | boolean | Indicates whether there is fill. |
Methods
Method | Description |
---|---|
setOneColorGradient(Color, number, GradientStyleType, number) | Sets the specified fill to a one-color gradient. |
foreColor
Gets and sets the fill fore color.
foreColor : Color;
foreColorTransparency
Returns or sets the degree of fore color of the specified fill as a value from 0.0 (opaque) through 1.0 (clear).
foreColorTransparency : number;
backColor
Gets and sets the file back color.
backColor : Color;
imageData
Gets and sets the Texture and Picture fill data.
imageData : Uint8Array;
texture
Readonly. Gets the texture fill type.
texture : TextureType;
isVisible
Indicates whether there is fill.
isVisible : boolean;
setOneColorGradient(Color, number, GradientStyleType, number)
Sets the specified fill to a one-color gradient.
setOneColorGradient(color: Color, degree: number, style: GradientStyleType, variant: number) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
color | Color | One gradient color. |
degree | number | The gradient degree. Can be a value from 0.0 (dark) through 1.0 (light). |
style | GradientStyleType | Gradient shading style. |
variant | number | The gradient variant. Can be a value from 1 through 4, corresponding to one of the four variants on the Gradient tab in the Fill Effects dialog box. If style is GradientStyle.FromCenter, the Variant argument can only be 1 or 2. |