c# - 确定 Windows 7 通过 C# 设置的字体大小?

标签 c# user-interface windows-7

<分区>

Possible Duplicate:
How do I detect if the user's font (DPI) is set to small, large, or something else?

我正在寻找一种方法来检索下图中使用的设置?

谢谢?

enter image description here

最佳答案

在 SystemFonts 类下检查。我认为您只需要默认 namespace 即可。

string name = SystemFonts.IconTitleFont.FontFamily.Name;
float size = SystemFonts.IconTitleFont.Size;

关于c# - 确定 Windows 7 通过 C# 设置的字体大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8718633/

相关文章:

c# - 如何将图像从 Asp.net Core IFormFile 上传到 Azure Blob 存储?

java - 是否存在不需要外部 JAR 的 Java GUI 构建器?

windows-7 - Win7 VB6 ocx注册问题

python - Windows 7/Vista 进程管理 - 如何在长时间空闲后启动外部程序?

batch-file - 使用批处理文件创建和启动 Windows 7 或 10 服务?

c# - 如何获取长路径的安全详细信息?

c# - 该应用程序需要程序集...安装在全局程序集缓存中

c# - 有没有办法在 ASP.NET 中将身份验证从一个 Web 应用程序持久保存到另一个嵌套的 Web 应用程序?

java - 是否可以使用 JavaFX 和 Swing 制作视觉上吸引人的 GUI?

c# - 如何处理项目计数检查器