font property

This method gets or sets the font properties for the header and footer.

Internet Explorer 8



HRESULT value = object.put_font(BSTR v);HRESULT value = object.get_font(BSTR* p);

Property values

Type: BSTR

a combination of strings that define the properties of the font for the header and footer. The property values are delimited by semicolons.


Note   A minimum of 2 properties are required: "font-family" and "font-size".

May contain any combination of these color and font property values:


This snippet illustrates the method call. It cannot be used stand-alone.

<html xmlns:ie>
    <?import namespace="ie" implementation="#default">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="MSThemeCompatible" content="Yes">
    <script defer src="MyTest.js">

    <body onLoad="setTimeout('OnLoadBody()', 25);">
        <!-- Controls for printing  -->
        <IE:TemplatePrinter id=Printer  />
        <IE:HeaderFooter    id=HeadFoot />
function MyTest()
var strHeaderFooterFont = Printer.headerFooterfont;

HeadFoot.textFoot = "Hello World - This is some footer text.";
HeadFoot.font     = strHeaderFooterFont;

See also