SpreadMethod (LinearGradientBrush)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the type of spread method that specifies how to draw a gradient that starts or ends inside the bounds of a LinearGradientBrush object.

<object SpreadMethod="GradientSpreadMethod"  .../>
value = object.SpreadMethod
object.SpreadMethod = value

Property Value

Type: GradientSpreadMethod

One of the enumeration values that specifies the type of spread method used to paint the gradient.

This property is read/write. The default value is Pad.

Managed Equivalent

SpreadMethod

Applies To

LinearGradientBrush