IHTMLFontElement

IHTMLFontElement


This interface specifies a new font face, size, and color to be used for rendering the enclosed text.

IHTMLFontElement Methods
put_color   get_color   put_face  
get_face   put_size   get_size  

IHTMLFontElement::put_color

HRESULT put_color(
    VARIANT v
);

Sets the color to be used by the font.

v
String or value specifying the color. It can be one of the color names or values given in the Color Table reference documentation.

See also get_color

IHTMLFontElement::get_color

HRESULT get_color(
    VARIANT *p
);

Retrieves the color used by the font.

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

See also put_color

IHTMLFontElement::put_face

HRESULT put_face(
    BSTR v
);

Sets the typeface to use for the text of the element.

v
String specifying the font.

See also get_face

IHTMLFontElement::get_face

HRESULT get_face(
    BSTR *p
);

Retrieves the current font's typeface.

p
Address of a string variable that receives the font's typeface.

See also put_face

IHTMLFontElement::put_size

HRESULT put_size(
    VARIANT v
);

Sets the font size for the text of the element.

v
Integer value specifying the font size. This property takes an integer value in the range 1 through 7, with 7 representing the largest font.

See also get_size

IHTMLFontElement::get_size

HRESULT get_size(
    VARIANT *p
);

Retrieves the current font size for the text of the element.

p
Address of a variable that receives the font size. This property is an integer value in the range 1 through 7, with 7 representing the largest font.

See also put_size

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.