TwoColorGradient

TwoColorGradient class

Represents two color gradient.

class TwoColorGradient;

Constructors

ConstructorDescription
constructor(Color, Color, GradientStyleType, number)

Properties

PropertyTypeDescription
color1ColorGets and sets the first gradient color.
color2ColorGets and sets the second gradient color.
gradientStyleTypeGradientStyleTypeGets and sets gradient shading style.
variantnumberGets and sets the gradient variant.

Methods

MethodDescription
getColor1()@deprecated. Please use the ‘color1’ property instead. Gets and sets the first gradient color.
setColor1(Color)@deprecated. Please use the ‘color1’ property instead. Gets and sets the first gradient color.
getColor2()@deprecated. Please use the ‘color2’ property instead. Gets and sets the second gradient color.
setColor2(Color)@deprecated. Please use the ‘color2’ property instead. Gets and sets the second gradient color.
getGradientStyleType()@deprecated. Please use the ‘gradientStyleType’ property instead. Gets and sets gradient shading style.
setGradientStyleType(GradientStyleType)@deprecated. Please use the ‘gradientStyleType’ property instead. Gets and sets gradient shading style.
getVariant()@deprecated. Please use the ‘variant’ property instead. Gets and sets the gradient variant.
setVariant(number)@deprecated. Please use the ‘variant’ property instead. 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

color1

Gets and sets the first gradient color.

color1 : Color;

color2

Gets and sets the second gradient color.

color2 : Color;

gradientStyleType

Gets and sets gradient shading style.

gradientStyleType : GradientStyleType;

variant

Gets and sets the gradient variant.

variant : number;

getColor1()

@deprecated. Please use the ‘color1’ property instead. Gets and sets the first gradient color.

getColor1() : Color;

Returns

Color

setColor1(Color)

@deprecated. Please use the ‘color1’ property instead. Gets and sets the first gradient color.

setColor1(value: Color) : void;

Parameters:

ParameterTypeDescription
valueColorThe value to set.

getColor2()

@deprecated. Please use the ‘color2’ property instead. Gets and sets the second gradient color.

getColor2() : Color;

Returns

Color

setColor2(Color)

@deprecated. Please use the ‘color2’ property instead. Gets and sets the second gradient color.

setColor2(value: Color) : void;

Parameters:

ParameterTypeDescription
valueColorThe value to set.

getGradientStyleType()

@deprecated. Please use the ‘gradientStyleType’ property instead. Gets and sets gradient shading style.

getGradientStyleType() : GradientStyleType;

Returns

GradientStyleType

setGradientStyleType(GradientStyleType)

@deprecated. Please use the ‘gradientStyleType’ property instead. Gets and sets gradient shading style.

setGradientStyleType(value: GradientStyleType) : void;

Parameters:

ParameterTypeDescription
valueGradientStyleTypeThe value to set.

getVariant()

@deprecated. Please use the ‘variant’ property instead. Gets and sets the gradient variant.

getVariant() : number;

setVariant(number)

@deprecated. Please use the ‘variant’ property instead. 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;