VB.NET, C#, PowerShellを使用しているエンジニアのためのサイト。
基本的な使用方法から開発で役立つTipsまで幅広く取り扱っています。
チェックボックス部分の位置を変更するには、CheckAlignプロパティを変更します。CheckAlignプロパティにはContentAlignment列挙体をセットします。
ContentAlignment列挙体
メンバ名 | 説明 |
---|---|
TopLeft | 上端左寄せ |
TopCenter | 上端中央 |
TopRight | 上端右寄せ |
MiddleLeft | 中段左寄せ |
MiddleCenter | 中段中央 |
MiddleRight | 中段右寄せ |
BottomLeft | 下段左寄せ |
BottomCenter | 下段中央 |
BottomRight | 下段右寄せ |
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 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 End Sub