GradientBrush class

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.

The GradientBrush type exposes the following members:

Constructors

NameDescription
GradientBrush(native_brush)Initializes a new instance of the GradientBrush class

Properties

NameDescription
wrap_modeReturns or specifies wrap mode for this gradient brush. It can be WrapMode.Clamp, that results in throwing exception in native gradient brushes.
native_brushReturns native gradient brush.
boundsReturns or specifies bounds for this gradient brushes.

See Also