次の方法で共有


IXRGradientBrush::SetSpreadMethod (Windows Embedded CE 6.0)

1/6/2010

This method sets the spread method used to determine how a gradient is drawn when it starts or ends inside the bounds of the target object.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetSpreadMethod(
    XRGradientSpreadMethod SpreadMethod
) = 0;

Parameters

  • SpreadMethod
    [in] XRGradientSpreadMethod enumerated type that describes the kind of spread method used to paint the gradient.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The following illustration shows the available spread methods and their effect on IXRLinearGradientBrush and IXRRadialGradientBrush. The red line indicates the gradient space. A linear gradient-brush defines its gradient space with its StartPoint and EndPoint properties. A radial gradient-brush defines its gradient space with its Center, RadiusX, and RadiusY properties.

Ee501661.d19c9930-7861-41d7-a564-78f290c28b3e(en-US,WinEmbedded.60).jpg

.NET Framework Equivalent

System.Windows.Media.GradientBrush.SpreadMethod

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRGradientBrush
IXRGradientBrush::GetSpreadMethod