
## TwoColorGradient class

Represents two color gradient.

## Constructors

| Name | Description |
| --- | --- |
| [TwoColorGradient](#constructor) |  |

## Properties

| Name | Type | Description |
| --- | --- | --- |
| [Color1](#color1) | Color | Gets and sets the first gradient color. |
| [Color2](#color2) | Color | Gets and sets the second gradient color. |
| [GradientStyleType](#gradientstyletype) | Number | Gets and sets gradient shading style. The value of the property is GradientStyleType integer constant. |
| [Variant](#variant) | Number | Gets and sets the gradient variant. |

### TwoColorGradient(color1, color2, gradientStyleType, variant) {#constructor}

| Parameter | Type | Description |
| --- | --- | --- |
| color1 | Color |  |
| color2 | Color |  |
| gradientStyleType | Number | A GradientStyleType value. |
| variant | Number |  |

### TwoColorGradient.Color1 property {#color1}

Gets and sets the first gradient color.

**Type:** Color

### TwoColorGradient.Color2 property {#color2}

Gets and sets the second gradient color.

**Type:** Color

### TwoColorGradient.GradientStyleType property {#gradientstyletype}

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

**Type:** Number

### TwoColorGradient.Variant property {#variant}

Gets and sets the gradient variant.

**Type:** Number
