VsShellUtilities.GetEnvironmentFont 方法

检索宿主环境字体作为 Font

命名空间:  Microsoft.VisualStudio.Shell
程序集:  Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)

语法

声明
Public Shared Function GetEnvironmentFont ( _
    provider As IServiceProvider _
) As Font
public static Font GetEnvironmentFont(
    IServiceProvider provider
)

参数

返回值

类型:System.Drawing.Font
字体。

.NET Framework 安全性

请参见

参考

VsShellUtilities 类

Microsoft.VisualStudio.Shell 命名空间