Click to return to the Reusing Browser Technology home page    
IHTMLBodyElement::get_scr...     IHTMLBodyElement::get_top...     IHTMLBodyElement Interfac...    
Web Workshop  |  Reusing Browser Technology

IHTMLBodyElement::get_text Method


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

IHTMLBodyElement::put_text Method


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


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.