
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
HRESULT get_color(
VARIANT *p
);
Retrieves the color used by the font.
- Returns S_OK if successful, or an error value otherwise.
- 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
HRESULT get_face(
BSTR *p
);
Retrieves the name of the typeface for the base font.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a string variable that receives the name of the typeface.
See also put_face
HRESULT get_size(
long *p
);
Retrieves the font size used for the text of the element.
- Returns S_OK if successful, or an error value otherwise.
- 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
HRESULT put_color(
VARIANT v
);
Sets the color to be used by the font.
- Returns S_OK if successful, or an error value otherwise.
- 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
HRESULT put_face(
BSTR v
);
Sets the typeface to use for the text of the element.
- Returns S_OK if successful, or an error value otherwise.
- v
- String value that specifies the font.
See also get_face
HRESULT put_size(
long v
);
Sets the font size for the text of the element.
- Returns S_OK if successful, or an error value otherwise.
- 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.