IHTMLBaseFontElement

IHTMLBaseFontElement


This interface sets a base font value to be used as the default font when rendering text.

This element can be used only within the HEAD tag.

IHTMLBaseFontElement Methods
get_color   get_face   get_size  
put_color   put_face   put_size  

IHTMLBaseFontElement::get_color

HRESULT get_color(
    VARIANT *p
);

Retrieves the color used by the font.

p
Address of a VARIANT structure 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

IHTMLBaseFontElement::get_face

HRESULT get_face(
    BSTR *p
);

Retrieves the name of the typeface for the base font.

p
Address of a string variable that receives the name of the typeface.

See also put_face

IHTMLBaseFontElement::get_size

HRESULT get_size(
    long *p
);

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

p
Address of a long integer variable that receives the size. It can be an integer value in the range 1 through 7, with 7 representing the largest font.

See also put_size

IHTMLBaseFontElement::put_color

HRESULT put_color(
    VARIANT v
);

Sets the color to be used by the font.

v
VARIANT structure that contains either a string or numeric 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

IHTMLBaseFontElement::put_face

HRESULT put_face(
    BSTR v
);

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

v
String value that specifies the font.

See also get_face

IHTMLBaseFontElement::put_size

HRESULT put_size(
    long v
);

Sets the font size for the text of the element.

v
Long 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

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