Dela via


GradientBrush.MappingMode Property

Definition

Gets or sets a BrushMappingMode enumeration value that specifies whether the positioning coordinates of the gradient brush are absolute or relative to the output area.

public:
 property BrushMappingMode MappingMode { BrushMappingMode get(); void set(BrushMappingMode value); };
BrushMappingMode MappingMode();

void MappingMode(BrushMappingMode value);
public BrushMappingMode MappingMode { get; set; }
var brushMappingMode = gradientBrush.mappingMode;
gradientBrush.mappingMode = brushMappingMode;
Public Property MappingMode As BrushMappingMode
<gradientBrush MappingMode="Absolute"/>
-or-
<gradientBrush MappingMode="RelativeToBoundingBox"/>

Property Value

A BrushMappingMode value that specifies how to interpret the gradient brush's positioning coordinates. The default is RelativeToBoundingBox.

Applies to