Partager via


IXRSolidColorBrush::SetColor (Compact 2013)

3/28/2014

This method sets the color of this brush.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetColor(
COLORREF Color
) = 0;

Parameters

  • Color
    [in] COLORREF value that specifies the solid color value of this brush. 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 RGBA macro to create a color value to supply to this method.

Important

If the RGB macro is used, Alpha is set to 0 (zero), which is transparent.

.NET Framework Equivalent

System.Windows.Media.SolidColorBrush

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRSolidColorBrush
IXRSolidColorBrush::GetColor