Retrieves the current text (foreground) color of the document body.
Syntax
HRESULT get_text( VARIANT *p );
Parameters
- p
- Address of a VARIANT structure that receives the color. The color can be one of the names or values in the Color Table. For details, see the text property.
Return Value
Returns S_OK if successful, or an error code otherwise.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
Sets the current text (foreground) color for the document body.
Syntax
HRESULT put_text( VARIANT v );
Parameters
- v
- VARIANT structure that contains either a string or value that specifies the color to set. The color can be one of the names or values in the Color Table. For details, see the text property.
Return Value
Returns S_OK if successful, or an error code otherwise.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0