RadioButton.CheckAlign プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

<LocalizableAttribute(True)> _ Public Property CheckAlign As ContentAlignment
Dim instance As RadioButton Dim value As ContentAlignment value = instance.CheckAlign instance.CheckAlign = value
[LocalizableAttribute(true)] public: property ContentAlignment CheckAlign { ContentAlignment get (); void set (ContentAlignment value); }
/** @property */ public ContentAlignment get_CheckAlign () /** @property */ public void set_CheckAlign (ContentAlignment value)
public function get CheckAlign () : ContentAlignment public function set CheckAlign (value : ContentAlignment)
有効な ContentAlignment 値の 1 つ。既定値は MiddleLeft です。


CheckAlign プロパティを実行時に変更する方法を次のコード例に示します。Checked 値が変更されると、RadioButton のチェック ボックス部分がテキストの左右に移動します。この例は、RadioButton コントロールがフォーム上でインスタンス化されていること、および System.Drawing 名前空間への参照が含まれていることを前提にしています。
Private Sub radioButton1_CheckedChanged(sender As Object, e As EventArgs) ' Change the check box position to be opposite its current position. If radioButton1.CheckAlign = ContentAlignment.MiddleLeft Then radioButton1.CheckAlign = ContentAlignment.MiddleRight Else radioButton1.CheckAlign = ContentAlignment.MiddleLeft End If End Sub
private void radioButton1_CheckedChanged(Object sender, EventArgs e) { // Change the check box position to be opposite its current position. if (radioButton1.CheckAlign == ContentAlignment.MiddleLeft) { radioButton1.CheckAlign = ContentAlignment.MiddleRight; } else { radioButton1.CheckAlign = ContentAlignment.MiddleLeft; } }
private: Void radioButton1_CheckedChanged( System::Object^ sender, System::EventArgs^ e ) { // Change the check box position to be opposite its current position. if ( radioButton1->CheckAlign == ContentAlignment::MiddleLeft ) { radioButton1->CheckAlign = ContentAlignment::MiddleRight; } else { radioButton1->CheckAlign = ContentAlignment::MiddleLeft; } }
private void radioButton1_CheckedChanged(Object sender, EventArgs e) { // Change the check box position to be opposite its current position. if (radioButton1.get_CheckAlign().Equals(ContentAlignment.MiddleLeft)) { radioButton1.set_CheckAlign(ContentAlignment.MiddleRight); } else { radioButton1.set_CheckAlign(ContentAlignment.MiddleLeft); } } //radioButton1_CheckedChanged

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からRadioButton.CheckAlign プロパティを検索する場合は、下記のリンクをクリックしてください。

- RadioButton.CheckAlign プロパティのページへのリンク