IHTMLHRElement::color Property

Sets or retrieves the color to be used by the object.

Syntax


HRESULT IHTMLHRElement::get_color(VARIANT *p);HRESULT IHTMLHRElement::put_color(VARIANT v);

Parameters

p
Pointer to a variable of type VARIANT of type VT_BSTR or VT_I4 that receives one of the color names or RGB values in the Color Table.
v
VARIANT of type VT_BSTR or VT_I4 that specifies one of the color names or RGB values in the Color Table.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Some browsers do not recognize color names, but all browsers should recognize RGB color values and display them correctly.

Show: