Share via


IXRGradientBrush::SetGradientStops (Compact 2013)

3/28/2014

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

See Also

Reference

IXRGradientBrush
IXRGradientBrush::GetGradientStops