GradientBrush.SpreadMethod Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the type of spread method that specifies how to draw a gradient that starts or ends inside the bounds of the object to be painted.
public:
property GradientSpreadMethod SpreadMethod { GradientSpreadMethod get(); void set(GradientSpreadMethod value); };
GradientSpreadMethod SpreadMethod();
void SpreadMethod(GradientSpreadMethod value);
public GradientSpreadMethod SpreadMethod { get; set; }
var gradientSpreadMethod = gradientBrush.spreadMethod;
gradientBrush.spreadMethod = gradientSpreadMethod;
Public Property SpreadMethod As GradientSpreadMethod
<gradientBrush SpreadMethod="Pad"/>
-or-
<gradientBrush SpreadMethod="Reflect"/>
-or-
<gradientBrush SpreadMethod="Repeat"/>
Property Value
The type of spread method used to paint the gradient. The default is Pad.