Class GradientBrush
GradientBrush class
This class is used for encapsulating GradientBrush 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.
public class GradientBrush : Brush
Constructors
| Name | Description |
|---|
| GradientBrush(Brush) | Creates new instance of GradientBrush. GradientBrush or PathGradientBrush. If other than ArgumentException will be thrown. |
Properties
| Name | Description |
|---|
| Bounds { get; set; } | Returns or specifies bounds for this gradient brushes. |
| NativeBrush { get; } | Returns native gradient brush. |
| 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() | Clones this brush. |
| override Dispose() | Releases all resources used by this GradientBrush object. |
See Also