GradientBrush.MappingMode 属性

定义

获取或设置 BrushMappingMode 枚举值,该值指定渐变画笔的定位坐标是绝对坐标还是相对于输出区域。

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"/>

属性值

一个 BrushMappingMode 值,该值指定如何解释渐变画笔的位置坐标。 默认值为 RelativeToBoundingBox

适用于