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

ConstructorDescription
initCreates new instance of GradientBrush.
LinearGradientBrush or PathGradientBrush. If other than ArgumentException will be thrown.

Properties

PropertyDescription
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