繁体   English   中英

是否可以在整个C#Windows应用程序中设置字体样式

[英]Is it possible to set the font style in an entire c# windows application

是否可以在整个c#Windows应用程序(如Web应用程序中的CSS)中设置字体样式?

在配置中

WindowsFormsApplication1.Properties.Settings.Default.UserFont = new Font("Arial", 24, FontStyle.Bold);

您可以在Form构造函数中的InitializeComponent()之前添加:

this.Font = SystemFonts.MessageBoxFont;

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM