GradientBrush.MappingMode 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 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.