Freigeben über


RadialGradientBrush.MappingMode Eigenschaft

Definition

Ruft ab oder legt fest, ob die Positionierungskoordinaten des Farbverlaufspinsels absolut oder relativ zum Ausgabebereich sind.

public:
 property BrushMappingMode MappingMode { BrushMappingMode get(); void set(BrushMappingMode value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")]
BrushMappingMode MappingMode();

void MappingMode(BrushMappingMode value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")]
BrushMappingMode MappingMode();

void MappingMode(BrushMappingMode value);
public BrushMappingMode MappingMode { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")]
public BrushMappingMode MappingMode { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::BrushMappingMode::RelativeToBoundingBox")] set; }
var brushMappingMode = radialGradientBrush.mappingMode;
radialGradientBrush.mappingMode = brushMappingMode;
Public Property MappingMode As BrushMappingMode

Eigenschaftswert

Definiert, ob Center, RadiusX, RadiusYund GradientOrigin relative Koordinaten im Bereich von 0 bis 1 oder absolute Koordinaten darstellen. Der Standardwert lautet RelativeToBoundingBox.

Attribute
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Hinweise

Der Standardwert lautet RelativeToBoundingBox.

Gilt für: