InvisibleApp.DialogFont Property
Visio Automation Reference |
Returns information about the fonts that Microsoft Office Visio uses in its dialog boxes. Read-only.
Version Information
Version Added: Visio 2002
Syntax
expression.DialogFont
expression A variable that represents an InvisibleApp object.
Return Value
IFontDisp
Remarks
You can use this property to display your dialog boxes in the same font as the Visio dialog boxes.
COM (Component Object Model) 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 within Microsoft Visual Basic. The stdole type library is automatically referenced from all Visual Basic projects in 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.
Example
The following sample code shows how to get a reference to a StdFont object that conveys information about the application fonts, and how to print that information to the Immediate window.
Visual Basic for Applications |
---|
|
See Also