
**Inheritance:**
java.lang.Object
```
public class TwoColorGradient
```

Represents two color gradient.
## Constructors

| Constructor | Description |
| --- | --- |
| [TwoColorGradient(Color color1, Color color2, int gradientStyleType, int variant)](#TwoColorGradient-com.aspose.cells.Color-com.aspose.cells.Color-int-int-) |  |
## Methods

| Method | Description |
| --- | --- |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getClass()](#getClass--) |  |
| [getColor1()](#getColor1--) | Gets the first gradient color. |
| [getColor2()](#getColor2--) | Gets the second gradient color. |
| [getGradientStyleType()](#getGradientStyleType--) | Gets gradient shading style. |
| [getVariant()](#getVariant--) | Gets the gradient variant. |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setColor1(Color value)](#setColor1-com.aspose.cells.Color-) | Sets the first gradient color. |
| [setColor2(Color value)](#setColor2-com.aspose.cells.Color-) | Sets the second gradient color. |
| [setGradientStyleType(int value)](#setGradientStyleType-int-) | Sets gradient shading style. |
| [setVariant(int value)](#setVariant-int-) | Sets the gradient variant. |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### TwoColorGradient(Color color1, Color color2, int gradientStyleType, int variant) {#TwoColorGradient-com.aspose.cells.Color-com.aspose.cells.Color-int-int-}
```
public TwoColorGradient(Color color1, Color color2, int gradientStyleType, int variant)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| color1 | [Color](../../com.aspose.cells/color) |  |
| color2 | [Color](../../com.aspose.cells/color) |  |
| gradientStyleType | int | [GradientStyleType](../../com.aspose.cells/gradientstyletype). |
| variant | int |  |

### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getColor1() {#getColor1--}
```
public Color getColor1()
```


Gets the first gradient color.

**Returns:**
[Color](../../com.aspose.cells/color)
### getColor2() {#getColor2--}
```
public Color getColor2()
```


Gets the second gradient color.

**Returns:**
[Color](../../com.aspose.cells/color)
### getGradientStyleType() {#getGradientStyleType--}
```
public int getGradientStyleType()
```


Gets gradient shading style.

See [GradientStyleType](../../com.aspose.cells/gradientstyletype).

**Returns:**
int
### getVariant() {#getVariant--}
```
public int getVariant()
```


Gets the gradient variant.

**Returns:**
int
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### setColor1(Color value) {#setColor1-com.aspose.cells.Color-}
```
public void setColor1(Color value)
```


Sets the first gradient color.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [Color](../../com.aspose.cells/color) |  |

### setColor2(Color value) {#setColor2-com.aspose.cells.Color-}
```
public void setColor2(Color value)
```


Sets the second gradient color.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [Color](../../com.aspose.cells/color) |  |

### setGradientStyleType(int value) {#setGradientStyleType-int-}
```
public void setGradientStyleType(int value)
```


Sets gradient shading style.

See [GradientStyleType](../../com.aspose.cells/gradientstyletype).

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setVariant(int value) {#setVariant-int-}
```
public void setVariant(int value)
```


Sets the gradient variant.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

