将样式应用于单选按钮

时间:2015-01-18 14:01:31

标签: c# winforms

我的问题可能看起来很愚蠢,但我真的无法找到答案。我试图将文本放在radiobutton的顶部而不是侧面。我发现这个问题How to put text on top in RadioButton似乎回答了我的问题,但是如何将它应用到我的窗体中的单选按钮。我正在使用Visual Studio 2013,而且我正在使用Windows窗体应用程序。

提前致谢!

1 个答案:

答案 0 :(得分:0)

对于WinForms,有两个属性:

radioButton1.CheckAlign = ContentAlignment.BottomCenter;
radioButton1.TextAlign = ContentAlignment.TopCenter;
相关问题