Application.DialogFont property (Visio)
Returns information about the fonts that Microsoft Visio uses in its dialog boxes. Read-only.
Syntax
expression.DialogFont
expression A variable that represents an Application object.
Return value
IFontDisp
Remarks
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 an 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
In the Code group on the Developer tab, choose Visual Basic.
On the View menu, choose Object Browser.
In the Project/Library list, choose stdole.
Under Classes, examine the class named StdFont.
Example
The following sample code shows how to get a reference to an StdFont object that conveys information about the application fonts, and how to print that information to the Immediate window.
Sub DialogFont_Example()
Dim objStdFont As StdFont
Set objStdFont = Application.DialogFont
With objStdFont
Debug.Print .Bold
Debug.Print .CharSet
Debug.Print .Italic
Debug.Print .Name
Debug.Print .Size
Debug.Print .Strikethrough
Debug.Print .Underline
Debug.Print .Weight
End With
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기