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

/** @property */ public boolean get_Checked () /** @property */ public void set_Checked (boolean value)
チェック ボックスがオンである場合は true。それ以外の場合は false。

ListBox の選択項目と、RadioButton の Checked プロパティを評価するコード例を次に示します。指定された項目がリスト ボックスで選択されると、別の RadioButton の PerformClick メソッドが呼び出されます。この例は、2 つの RadioButton コントロールおよび ListBox がフォーム上でインスタンス化されていることを前提にしています。
Private Sub ClickMyRadioButton() ' If Item1 is selected and radioButton2 ' is checked, click radioButton1. If (listBox1.Text = "Item1") And radioButton2.Checked Then radioButton1.PerformClick() End If End Sub
private void ClickMyRadioButton() { // If Item1 is selected and radioButton2 // is checked, click radioButton1. if (listBox1.Text == "Item1" && radioButton2.Checked) { radioButton1.PerformClick(); } }

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.Checked プロパティを検索する場合は、下記のリンクをクリックしてください。

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