次の方法で共有


ControlBindingsCollection.Control プロパティ

コレクションが属するコントロールを取得します。

Public ReadOnly Property Control As Control
[C#]
public Control Control {get;}
[C++]
public: __property Control* get_Control();
[JScript]
public function get Control() : Control;

プロパティ値

コレクションが属する Control

使用例

[Visual Basic, C#, C++] ControlBindingsCollection が属するコントロールについての情報を出力する例を次に示します。

 
Private Sub GetControl(myBindings As ControlBindingsCollection)
    Dim c As Control = myBindings.Control
    Console.WriteLine(c.ToString())
End Sub

[C#] 
private void GetControl(ControlBindingsCollection myBindings)
{
   Control c = myBindings.Control;
   Console.WriteLine(c.ToString());
}

[C++] 
private:
void GetControl(ControlBindingsCollection* myBindings)
{
   Control* c = myBindings->Control;
   Console::WriteLine(c);
}

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

ControlBindingsCollection クラス | ControlBindingsCollection メンバ | System.Windows.Forms 名前空間