RadioButton.Checked プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > RadioButton.Checked プロパティの意味・解説 

RadioButton.Checked プロパティ

コントロールチェックされるかどうかを示す値を、取得または設定します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

使用例使用例

ListBox選択項目と、RadioButtonChecked プロパティ評価するコード例次に示します指定された項目がリスト ボックス選択されると、別の 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();
   }
}

private:
   void ClickMyRadioButton()
   {
      // If Item1 is selected and radioButton2 
      // is checked, click radioButton1.
      if ( listBox1->Text == "Item1" && radioButton2->Checked
 )
      {
         radioButton1->PerformClick();
      }
   }
private void ClickMyRadioButton()
{
    // If Item1 is selected and radioButton2 is checked, click radioButton1.
    if ( listBox1.get_Text().equals("Item1") &&
 radioButton2.get_Checked()) {
            radioButton1.PerformClick();
    }
} //ClickMyRadioButton
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「RadioButton.Checked プロパティ」の関連用語

RadioButton.Checked プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



RadioButton.Checked プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS