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

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

Control.CanSelect プロパティ

コントロール選択できるかどうかを示す値を取得します

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

解説解説

System.Windows.Forms.ControlStyles の Selectable 値が true設定されていて、別のコントロール含まれており、コントロール自体すべてのコントロール表示されていて有効である場合、このプロパティtrue返します

CanSelect プロパティに対して false の値を返す選択できない Windows フォーム コントロールの一覧を次に示します。これらのコントロールか派生したコントロールも、選択できません。

使用例使用例

指定した Control選択可能である場合に、そのコントロール選択するコード例次に示します

Public Sub ControlSelect(control As
 Control)
   ' Select the control, if it can be selected.
   If control.CanSelect Then
      control.Select()
   End If
End Sub
public void ControlSelect(Control control)
{
   // Select the control, if it can be selected.
   if(control.CanSelect)
   {
      control.Select();
   }
}
public:
   void ControlSelect( Control^ control )
   {
      
      // Select the control, if it can be selected.
      if ( control->CanSelect )
      {
         control->Select(  );
      }
   }
public void ControlSelect(Control control)
{
    // Select the control, if it can be selected.
    if (control.get_CanSelect()) {
        control.Select();
    }
} //ControlSelect
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からControl.CanSelect プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からControl.CanSelect プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からControl.CanSelect プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS