Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

fgColor property

Sets or gets the foreground (text) color of the document.

Syntax

HRESULT value = object.put_fgColor( v);HRESULT value = object.get_fgColor(* p);

Property values

Type: VARIANT

one of the color names or values in the Color Table.

#000000

Default value.

Remarks

Change this property before the document is rendered to change the displayed color. The default foreground color is browser-specific.

See also

Reference
IHTMLHRElement::color
IHTMLBodyElement::text

 

 

Community Additions

ADD
Show:
© 2015 Microsoft