Partager via


IXRGradientBrush::SetMappingMode (Compact 2013)

3/28/2014

This method sets a value that specifies whether the positioning coordinates of this gradient brush are absolute or relative to the output area.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetMappingMode(
    XRBrushMappingMode MappingMode
) = 0;

Parameters

  • MappingMode
    [in] XRBrushMappingMode enumerated value that specifies how to interpret the gradient brush's positioning coordinates.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The MappingMode value determines whether the positioning coordinates are fixed (in pixels), or are calculated in relation to the size of the bounding window.

.NET Framework Equivalent

System.Windows.Media.GradientBrush.MappingMode

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRGradientBrush
IXRGradientBrush::GetMappingMode