new TwoColorGradient(color1, color2, gradientStyleType, variant)

Parameters

Name Type Optional Description

color1

 

 

color2

 

 

gradientStyleType

 

 

GradientStyleType

variant

 

 

Methods

getColor1()

Gets and sets the first gradient color.

getColor2()

Gets and sets the second gradient color.

getGradientStyleType()

Gets and sets gradient shading style. The value of the property is GradientStyleType integer constant.

getVariant()

Gets and sets the gradient variant.

setColor1()

Gets and sets the first gradient color.

setColor2()

Gets and sets the second gradient color.

setGradientStyleType()

Gets and sets gradient shading style. The value of the property is GradientStyleType integer constant.

setVariant()

Gets and sets the gradient variant.