DevExpress 和 C# 字体更改
我正在尝试更改 C# 程序中 DevExpress 实用程序中的默认字体。 现在我正在使用: DevExpress.Utils.AppearanceObject.DefaultFont = font; 但是,此代码仅更改表单上的菜单字体,它应该更改所有内容。 我还尝试枚举表单上的控件并更改类似问题中提到的文本,但这也不起作用。 希望有人知道如何使用 DevExpress 做到这一点......
I am trying to change the default font in a DevExpress utility within a C# program. Right now I'm using: DevExpress.Utils.AppearanceObject.DefaultFont = font;
However, this code is only changing the menu font on the form and it should change all of it. I've also tried enumerating through the controls on the form and changing the text as that was mentioned in a similar question, but that didn't work either. Hopefully someone knows how to do this with DevExpress...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要在InitializeComponents()或Application.Run之前调用DevExpress.Utils.AppearanceObject.DefaultFont = YourFont。
You need to call DevExpress.Utils.AppearanceObject.DefaultFont = YourFont before the InitializeComponents() or Application.Run.