共用方式為


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

適用於