IHTMLDocument2::get_fgColorIHTMLDocument2::get_fgColor*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLDocument2::put_fgColor
*Next Topic: IHTMLDocument2::put_linkColor

IHTMLDocument2::get_fgColor


HRESULT get_fgColor(
    VARIANT *p
);

Retrieves the color of the document foreground text.

p
Address of a VARIANT structure that receives the color. The color can be one of the color names or values given in the Color Table reference documentation.

Changing this property after the document is rendered does not change the displayed color.

JScript supports the entire set of valid property colors both as strings and their numerical equivalents as a string. JScript always returns the property as the numeric equivalent as a string regardless of the format to which the value was set.

The default foreground color is UA-specific.

See also put_fgColor

Up Top of Page


IHTMLDocument2::put_fgColor


HRESULT put_fgColor(
    VARIANT v
);

Sets the color of the document foreground text.

v
VARIANT structure containing a string or value specifying the color. The color can be one of the color names or values given in the Color Table reference documentation.

Changing this property after the document is rendered does not change the displayed color.

The default foreground color is browser specific.

See also get_fgColor


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.