Document.HeaderFooterFont Property
Visio Automation Reference |
Specifies the font used for the header and footer text. Read/write.
Version Information
Version Added: Visio 2002
Syntax
expression.HeaderFooterFont
expression A variable that represents a Document object.
Return Value
IFontDisp
Remarks
COM provides a standard implementation of a font object with the IFontDisp interface on top of the underlying system font support. The IFontDisp interface exposes a font object's properties and is implemented in the stdole type library as a StdFont object that can be created in Microsoft Visual Basic. The stdole type library is automatically referenced from all Visual Basic for Applications (VBA) projects in Microsoft Office Visio.
To get information about the StdFont object that supports the IFontDisp interface:
- On the Tools menu, point to Macros, and then click Visual Basic Editor.
- On the View menu, click Object Browser.
- In the Project/Library list, click stdole.
- Under Classes, examine the class named StdFont.
For details about the IFontDisp interface, see the Microsoft Platform SDK on MSDN, the Microsoft Developer Network.
Setting the HeaderFooterFont property is the equivalent of setting values in the Font box in the Choose Font dialog box (on the View menu, click Header and Footer, and then click Choose Font).
Example
The following sample code shows how to use the HeaderFooterFont property to get a reference to the current Font object and set the document's text font to non-bold Arial.
Visual Basic for Applications |
---|
|
See Also