Share via


IXRGradientBrush::SetGradientStops (Windows Embedded CE 6.0)

1/6/2010

This method sets this brush's gradient stops.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetGradientStops(
    IXRGradientStopCollection* pGradientStops
) = 0;

Parameters

  • pGradientStops
    [in] Pointer to a new IXRGradientStopCollection object that has a collection of IXRGradientStop objects associated with this brush. Each object specifies a color and an offset along the brush's gradient axis.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

Each gradient stop that you define in the collection must describe the offset location and color value of each transition point on the target surface.

.NET Framework Equivalent

System.Windows.Media.GradientBrush.GradientStops

Requirements

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

See Also

Reference

IXRGradientBrush
IXRGradientBrush::GetGradientStops