Cette documentation est archivée et n’est pas conservée.

GradientSpreadMethod, énumération

Specifies how to draw the gradient outside a gradient brush's gradient vector or space.

Espace de noms: System.Windows.Media
Assembly : PresentationCore (dans presentationcore.dll)
Espace de noms XML :  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public enum GradientSpreadMethod
public enum GradientSpreadMethod
public enum GradientSpreadMethod
<propriété d'objet="ValeurÉnumération" .../>

 Nom de membreDescription
PadDefault value. The color values at the ends of the gradient vector fill the remaining space.  
ReflectThe gradient is repeated in the reverse direction until the space is filled.  
RepeatThe gradient is repeated in the original direction until the space is filled.  

The following illustration shows the available spread methods and their effect on LinearGradientBrush and RadialGradientBrush. The red line indicates the gradient space. A LinearGradientBrush defines its gradient space with its StartPoint and EndPoint properties. A RadialGradientBrush defines its gradient space with its Center, RadiusX, and RadiusY properties.

Gradient spread methods


Different GradientSpread settings

Microsoft .NET Framework 3.0 est pris en charge sur Windows Vista, Microsoft Windows XP SP2 et Windows Server 2003 SP1.

.NET Framework

Prise en charge dans : 3.0
Afficher: