共用方式為


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

適用於