font property

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

 

Syntax

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.

Remarks

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

 

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

Examples

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

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

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

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

See also

headerFooterFont