次の方法で共有


IXRGradientStop::SetColor (Windows Embedded CE 6.0)

1/6/2010

This method sets the color of this gradient stop.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetColor(
    COLORREF Color
) = 0;

Parameters

  • Color
    [in] COLORREF value that specifies the solid color value of this gradient stop. COLORREF is an unsigned 32-bit value that specifies an RGB color.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

You can use the RGB macro or the RGBA macro to create a color value to supply to this method. For more information about identifying the correct the BYTE values to use in the RGB or RGBA macro for red, green, and blue, see this Web site.

For guidance on creating RGB colors, color components, and themes, see the EasyRGB.

.NET Framework Equivalent

System.Windows.Media.GradientStop.Color

Requirements

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

See Also

Reference

IXRGradientStop
IXRGradientStop::GetColor