VB.NET, C#, PowerShellを使用しているエンジニアのためのサイト。
基本的な使用方法から開発で役立つTipsまで幅広く取り扱っています。
円形のボタン位置を変更するには、CheckAlignプロパティを変更します。CheckAlignプロパティにはContentAlignment列挙体をセットします。
ContentAlignment列挙体
メンバ名 | 説明 |
---|---|
TopLeft | 上端左寄せ |
TopCenter | 上端中央 |
TopRight | 上端右寄せ |
MiddleLeft | 中段左寄せ |
MiddleCenter | 中段中央 |
MiddleRight | 中段右寄せ |
BottomLeft | 下段左寄せ |
BottomCenter | 下段中央 |
BottomRight | 下段右寄せ |
private void Form1_Load(object sender, System.EventArgs e) { radioButton1.CheckAlign = ContentAlignment.TopLeft; radioButton2.CheckAlign = ContentAlignment.TopCenter; radioButton3.CheckAlign = ContentAlignment.TopRight; radioButton4.CheckAlign = ContentAlignment.MiddleLeft; radioButton5.CheckAlign = ContentAlignment.MiddleCenter; radioButton6.CheckAlign = ContentAlignment.MiddleRight; radioButton7.CheckAlign = ContentAlignment.BottomLeft; radioButton8.CheckAlign = ContentAlignment.BottomCenter; radioButton9.CheckAlign = ContentAlignment.BottomRight; }