headerFooterFont method
Windows Internet Explorer 8. Sets or retrieves a combination of strings that define font properties of the header and footer.
Syntax
HRESULT retVal = object.headerFooterFont(bstrFont);
Parameters
bstrFont [in, out]
Type: BSTRPointer to a BSTR value that specifies the properties of the font for the header and footer. The property values are delimited by semicolons.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Note A minimum of 2 properties are required: "font-family" and "font-size".
May contain any combination of these CSS Attributes: Color and Background and CSS Attributes: Font and Text property values:
- IHTMLCurrentStyle::color
- IHTMLCurrentStyle::fontFamily (required)
- IHTMLCurrentStyle::fontSize (required)
- IHTMLCurrentStyle::fontStyle
- IHTMLRuleStyle::fontWeight
Examples
HRESULT MyResult;
BSTR MyHeaderFooterFonts SysAllocString(
L"font-family:courier new; font-size:12px; "
L"font-style:italic; color:red; font-weight:bold" );
MyResult = headerFooterFont(
MyHeaderFooterFonts
);
SysAllocFree( MyHeaderFooterFonts );
See also
Conceptual