## TwoColorGradient class


Represents two color gradient.

```cpp
class TwoColorGradient
```

## Methods

| Method | Description |
| --- | --- |
| [GetColor1()](./getcolor1/) | Gets and sets the first gradient color. |
| [GetColor2()](./getcolor2/) | Gets and sets the second gradient color. |
| [GetGradientStyleType()](./getgradientstyletype/) | Gets and sets gradient shading style. |
| [GetVariant()](./getvariant/) | Gets and sets the gradient variant. |
| [IsNull()](./isnull/) const | Checks whether the implementation object is nullptr. |
| explicit [operator bool()](./operator_bool/) const | operator bool() |
| [operator=(const TwoColorGradient\& src)](./operator_asm/) | operator= |
| [SetColor1(const Aspose::Cells::Color\& value)](./setcolor1/) | Gets and sets the first gradient color. |
| [SetColor2(const Aspose::Cells::Color\& value)](./setcolor2/) | Gets and sets the second gradient color. |
| [SetGradientStyleType(GradientStyleType value)](./setgradientstyletype/) | Gets and sets gradient shading style. |
| [SetVariant(int32_t value)](./setvariant/) | Gets and sets the gradient variant. |
| [TwoColorGradient(const Aspose::Cells::Color\& color1, const Aspose::Cells::Color\& color2, GradientStyleType gradientStyleType, int32_t variant)](./twocolorgradient/) |  |
| [TwoColorGradient(TwoColorGradient_Impl* impl)](./twocolorgradient/) | Constructs from an implementation object. |
| [TwoColorGradient(const TwoColorGradient\& src)](./twocolorgradient/) | Copy constructor. |
| [~TwoColorGradient()](./~twocolorgradient/) | Destructor. |
## Fields

| Field | Description |
| --- | --- |
| [_impl](./_impl/) | The implementation object. |
## See Also

* Namespace [Aspose::Cells](../)
* Library [Aspose.Cells for C++](../../)
