Control.CanSelect プロパティ
アセンブリ: 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(); } }

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


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

- Control.CanSelect プロパティのページへのリンク