MSDN Library

IHTMLBodyElement::bgColor Property

Deprecated. Sets or retrieves the background color behind the object.

Syntax


HRESULT IHTMLBodyElement::get_bgColor(VARIANT *p);HRESULT IHTMLBodyElement::put_bgColor(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.

Community Additions

Show:
© 2016 Microsoft