我想更改选项卡控件的字体,因为我希望选项卡页标题中的文本看起来更大。但是,当我更改设计器中选项卡控件的字体属性(我使用的是 MS VStudio 2010)时,其子控件的字体也会更改(例如标签和树视图),这是我不打算做的。我只想更改选项卡页标题的字体。
编辑:
我想通过循环子控件来更改代码中选项卡控件的子控件的字体属性(如果有)。这个想法会有什么问题吗?
Font
大部分财产Win-Forms
控制就像Label
定义如下。
The Font property is an ambient property. An ambient property is a control
property that, if not set, is retrieved from the parent control. For example, a
Button will have the same BackColor as its parent Form by default
如果您想在父级指定某种字体,并且不希望子级继承该字体,则必须手动为子控件分配其他字体
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)