如何获取“外观”对话框中可以找到的系统设置?

发布于 2024-07-12 04:39:17 字数 48 浏览 3 评论 0原文

我需要获取一些系统设置,例如标准对话框的字体大小和颜色? (我使用C#) 谢谢

I need to get some system settings for example, font size and color for a standard dialog box? (I use C#)
Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

听风吹 2024-07-19 04:39:17

以下类的属性将为您提供所需的信息:

System.Drawing.SystemFonts
System.Drawing.SystemColors
System.Windows.Forms.SystemInformation

回答 OP 评论:

Font messageBoxFont = System.Drawing.SystemFonts.MessageBoxFont;

The following classes have properties that will give you the information you are after:

System.Drawing.SystemFonts
System.Drawing.SystemColors
System.Windows.Forms.SystemInformation

In answer to the OPs comment:

Font messageBoxFont = System.Drawing.SystemFonts.MessageBoxFont;
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文