1
我想通过更改字体类型来更改按钮或菜单条目的样式。这是怎么做的,因为GTK#小部件没有像“Gtk.Button.Font”这样的属性在GTK#Widget上设置字体
我想通过更改字体类型来更改按钮或菜单条目的样式。这是怎么做的,因为GTK#小部件没有像“Gtk.Button.Font”这样的属性在GTK#Widget上设置字体
使用ModifyFont方法。按照链接页面上的例子:
button1.ModifyFont(FontDescription.FromString("Courier 16"));
相反的button1.ModifyFont
,button1.Child.ModifyFont
曾在我的情况。