## GradientBrush class

This class is used for encapsulating LinearGradientBrush and PathGradientBrush with possibility to set wrap mode to clamp. Native gradient brushes always throw an exception when someone tries to set WrapMode property to WrapMode.Clamp.

```csharp
public class GradientBrush : Brush
```

## Constructors

| Name | Description |
| --- | --- |
| [GradientBrush](gradientbrush/)(Brush) | Creates new instance of GradientBrush. LinearGradientBrush or PathGradientBrush. If other than ArgumentException will be thrown. |

## Properties

| Name | Description |
| --- | --- |
| [Bounds](../../aspose.page.eps/gradientbrush/bounds/) { get; set; } | Returns or specifies bounds for this gradient brushes. |
| [NativeBrush](../../aspose.page.eps/gradientbrush/nativebrush/) { get; } | Returns native gradient brush. |
| [WrapMode](../../aspose.page.eps/gradientbrush/wrapmode/) { get; set; } | Returns or specifies wrap mode for this gradient brush. It can be WrapMode.Clamp, that results in throwing exception in native gradient brushes. |

## Methods

| Name | Description |
| --- | --- |
| override [Clone](../../aspose.page.eps/gradientbrush/clone/)() | Clones this brush. |
| [Dispose](../../aspose.page.eps/gradientbrush/dispose/#dispose)() | Releases all resources used by this `GradientBrush` object. |

### See Also

* namespace [Aspose.Page.EPS](../../aspose.page.eps/)
* assembly [Aspose.Page](../../)


