如何在C#WinForms应用程序中进行全局字体设置? [英] How to do Global Font Settings in C# WinForms Application??
本文介绍了如何在C#WinForms应用程序中进行全局字体设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
在C#Winforms应用程序中的工作.
我已经使用DataConstants类为应用程序声明了所有常量.
就像
Hi All,
A working in a C# Winforms Application.
I have used a DataConstants Class to declare all constants for my applications.
like
Public class DataConstants
{
public const string FontName = "Verdana";
public const int FontSize = 8;
}
该声明包括字体名称和大小...
现在,我想为字体提供全局设置...
如何实现呢?
致谢..
The declaration includes fontname and size...
Now I want to give a global settings for Fonts...
How to achieve this?
Thnaks and Regards..
推荐答案
每次创建使用字体的控件时,请将其Font属性设置为使用该类公开的Font这些值.
Every time you create a control that uses a font, set it''s Font property to a Font that you expose from this class using these values.
这篇关于如何在C#WinForms应用程序中进行全局字体设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文