TwoColorGradient
Contents
[
Hide
]TwoColorGradient class
Represents two color gradient.
class TwoColorGradient;
Constructors
Name | Description |
---|---|
constructor(Color, Color, GradientStyleType, number) |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
color1 | Color | |
color2 | Color | |
gradientStyleType | GradientStyleType | |
variant | number |
getColor1()
Gets and sets the first gradient color.
getColor1() : Color;
Returns
setColor1(Color)
Gets and sets the first gradient color.
setColor1(value: Color) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | Color | The value to set. |
getColor2()
Gets and sets the second gradient color.
getColor2() : Color;
Returns
setColor2(Color)
Gets and sets the second gradient color.
setColor2(value: Color) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | Color | The value to set. |
getGradientStyleType()
Gets and sets gradient shading style.
getGradientStyleType() : GradientStyleType;
Returns
setGradientStyleType(GradientStyleType)
Gets and sets gradient shading style.
setGradientStyleType(value: GradientStyleType) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | GradientStyleType | The 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:
Parameter | Type | Description |
---|---|---|
value | number | The value to set. |
isNull()
Checks whether the implementation object is null.
isNull() : boolean;