## GradientFill class

表示渐变填充。

```csharp
public class GradientFill : Fill
```

## 特性

| 姓名 | 描述 |
| --- | --- |
| [Angle](../../aspose.cells.drawing/gradientfill/angle) { get; set; } | 线性填充的角度。 |
| [DirectionType](../../aspose.cells.drawing/gradientfill/directiontype) { get; } | 获取梯度方向类型。 |
| [FillType](../../aspose.cells.drawing/gradientfill/filltype) { get; } | 获取渐变填充类型。 |
| [GradientStops](../../aspose.cells.drawing/gradientfill/gradientstops) { get; } | 代表梯度停止集合。 |

## 方法

| 姓名 | 描述 |
| --- | --- |
| override [Equals](../../aspose.cells.drawing/fill/equals)(object) | / |
| override [GetHashCode](../../aspose.cells.drawing/fill/gethashcode)() | 获取哈希码。 |
| [SetGradient](../../aspose.cells.drawing/gradientfill/setgradient)(GradientFillType, double, GradientDirectionType) | 设置渐变填充类型和方向。 |
| [SetOneColorGradient](../../aspose.cells.drawing/gradientfill/setonecolorgradient)(Color, double, GradientStyleType, int) | 将指定的填充设置为单色渐变。 仅适用于 Excel 2007。 |
| [SetTwoColorGradient](../../aspose.cells.drawing/gradientfill/settwocolorgradient#settwocolorgradient_1)(Color, Color, GradientStyleType, int) | 将指定的填充设置为双色渐变。 仅适用于 Excel 2007。 |
| [SetTwoColorGradient](../../aspose.cells.drawing/gradientfill/settwocolorgradient#settwocolorgradient)(Color, double, Color, double, GradientStyleType, int) | 将指定的填充设置为双色渐变。 仅适用于 Excel 2007。 |

### 也可以看看

* class [Fill](../fill)
* 命名空间 [Aspose.Cells.Drawing](../../aspose.cells.drawing)
* 部件 [Aspose.Cells](../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
