## GradientFill class


Represents the gradient fill.

```cpp
class GradientFill
```

## Methods

| Method | Description |
| --- | --- |
| [GetAngle()](./getangle/) | The angle of linear fill. |
| [GetDirectionType()](./getdirectiontype/) | Gets the gradient direction type. |
| [GetFillType()](./getfilltype/) | Gets the gradient fill type. |
| [GetGradientStops()](./getgradientstops/) | Represents the gradient stop collection. |
| [GradientFill(GradientFill_Impl* impl)](./gradientfill/) | Constructs from an implementation object. |
| [GradientFill(const Aspose::Cells::Drawing::GradientFill\& src)](./gradientfill/) | Copy constructor. |
| [IsNull()](./isnull/) const | Checks whether the implementation object is nullptr. |
| explicit [operator bool()](./operator_bool/) const | operator bool() |
| [operator=(const Aspose::Cells::Drawing::GradientFill\& src)](./operator_asm/) | operator= |
| [SetAngle(float value)](./setangle/) | The angle of linear fill. |
| [SetGradient(GradientFillType type, double angle, GradientDirectionType direction)](./setgradient/) | Set the gradient fill type and direction. |
| [SetOneColorGradient(const Aspose::Cells::Color\& color, double degree, GradientStyleType style, int32_t variant)](./setonecolorgradient/) | Sets the specified fill to a one-color gradient. Only applies for Excel 2007. |
| [SetPresetThemeGradient(PresetThemeGradientType gradientType, ThemeColorType themeColorType)](./setpresetthemegradient/) | Sets preset theme gradient fill. |
| [SetTwoColorGradient(const Aspose::Cells::Color\& color1, const Aspose::Cells::Color\& color2, GradientStyleType style, int32_t variant)](./settwocolorgradient/) | Sets the specified fill to a two-color gradient. Only applies for Excel 2007. |
| [SetTwoColorGradient(const Aspose::Cells::Color\& color1, double transparency1, const Aspose::Cells::Color\& color2, double transparency2, GradientStyleType style, int32_t variant)](./settwocolorgradient/) | Sets the specified fill to a two-color gradient. Only applies for Excel 2007. |
| [~GradientFill()](./~gradientfill/) | Destructor. |
## Fields

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

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