TwoColorGradient

TwoColorGradient class

Represents two color gradient.

class TwoColorGradient;

Constructors

NameDescription
constructor(Color, Color, GradientStyleType, number)

Methods

MethodDescription
getColor1()Gets and sets the first gradient color.
setColor1(Color)Gets and sets the first gradient color.
getColor2()Gets and sets the second gradient color.
setColor2(Color)Gets and sets the second gradient color.
getGradientStyleType()Gets and sets gradient shading style.
setGradientStyleType(GradientStyleType)Gets and sets gradient shading style.
getVariant()Gets and sets the gradient variant.
setVariant(number)Gets and sets the gradient variant.
isNull()Checks whether the implementation object is null.

constructor(Color, Color, GradientStyleType, number)

constructor(color1: Color, color2: Color, gradientStyleType: GradientStyleType, variant: number);

Parameters:

ParameterTypeDescription
color1Color
color2Color
gradientStyleTypeGradientStyleType
variantnumber

getColor1()

Gets and sets the first gradient color.

getColor1() : Color;

Returns

Color

setColor1(Color)

Gets and sets the first gradient color.

setColor1(value: Color) : void;

Parameters:

ParameterTypeDescription
valueColorThe value to set.

getColor2()

Gets and sets the second gradient color.

getColor2() : Color;

Returns

Color

setColor2(Color)

Gets and sets the second gradient color.

setColor2(value: Color) : void;

Parameters:

ParameterTypeDescription
valueColorThe value to set.

getGradientStyleType()

Gets and sets gradient shading style.

getGradientStyleType() : GradientStyleType;

Returns

GradientStyleType

setGradientStyleType(GradientStyleType)

Gets and sets gradient shading style.

setGradientStyleType(value: GradientStyleType) : void;

Parameters:

ParameterTypeDescription
valueGradientStyleTypeThe value to set.

getVariant()

Gets and sets the gradient variant.

getVariant() : number;

setVariant(number)

Gets and sets the gradient variant.

setVariant(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;