IHTMLBodyElement::text Property
Sets or gets the text (foreground) color for the document body.
Syntax
HRESULT IHTMLBodyElement::get_text(VARIANT *p); HRESULT IHTMLBodyElement::put_text(VARIANT v);
Parameters
- p
Pointer to a variable of type VARIANT of type VT_BSTR or VT_I4 that receives any of the color names or values in the Color Table.- v
VARIANT of type VT_BSTR or VT_I4 that specifies any of the color names or 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.