MsoFillFormat

MsoFillFormat class

Represents fill formatting for a shape.

class MsoFillFormat;

Methods

MethodDescription
getForeColor()Gets and sets the fill fore color.
setForeColor(Color)Gets and sets the fill fore color.
getTransparency()Returns or sets the degree of transparency of the specified fill as a value from 0.0 (opaque) through 1.0 (clear).
setTransparency(number)Returns or sets the degree of transparency of the specified fill as a value from 0.0 (opaque) through 1.0 (clear).
getBackColor()Gets and sets the file back color.
setBackColor(Color)Gets and sets the file back color.
getImageData()Gets and sets the Texture and Picture fill data.
setImageData(number[])Gets and sets the Texture and Picture fill data.
getTexture()Gets the texture fill type.
isVisible()Indicates whether there is fill.
setIsVisible(boolean)Indicates whether there is fill.
setOneColorGradient(Color, number, GradientStyleType, number)Sets the specified fill to a one-color gradient.

getForeColor()

Gets and sets the fill fore color.

getForeColor() : Color;

Returns

Color

setForeColor(Color)

Gets and sets the fill fore color.

setForeColor(value: Color) : void;

Parameters:

ParameterTypeDescription
valueColorThe value to set.

getTransparency()

Returns or sets the degree of transparency of the specified fill as a value from 0.0 (opaque) through 1.0 (clear).

getTransparency() : number;

setTransparency(number)

Returns or sets the degree of transparency of the specified fill as a value from 0.0 (opaque) through 1.0 (clear).

setTransparency(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getBackColor()

Gets and sets the file back color.

getBackColor() : Color;

Returns

Color

setBackColor(Color)

Gets and sets the file back color.

setBackColor(value: Color) : void;

Parameters:

ParameterTypeDescription
valueColorThe value to set.

getImageData()

Gets and sets the Texture and Picture fill data.

getImageData() : number[];

Returns

number[]

setImageData(number[])

Gets and sets the Texture and Picture fill data.

setImageData(value: number[]) : void;

Parameters:

ParameterTypeDescription
valuenumber[]The value to set.

getTexture()

Gets the texture fill type.

getTexture() : TextureType;

Returns

TextureType

isVisible()

Indicates whether there is fill.

isVisible() : boolean;

setIsVisible(boolean)

Indicates whether there is fill.

setIsVisible(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

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:

ParameterTypeDescription
colorColorOne gradient color.
degreenumberThe gradient degree. Can be a value from 0.0 (dark) through 1.0 (light).
styleGradientStyleTypeGradient shading style.
variantnumberThe 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.