本文介绍了如何在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应用程序中进行全局字体设置?
发布评论