Udostępnij za pośrednictwem


GradientBrush.SpreadMethod Property

Definition

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.

Applies to