Freigeben über


ControlBindingsCollection.Control-Eigenschaft

Ruft das Steuerelement ab, zu dem die Auflistung gehört.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

Syntax

'Declaration
Public ReadOnly Property Control As Control
'Usage
Dim instance As ControlBindingsCollection
Dim value As Control

value = instance.Control
public Control Control { get; }
public:
property Control^ Control {
    Control^ get ();
}
/** @property */
public Control get_Control ()
public function get Control () : Control

Eigenschaftenwert

Das Control, zu dem die Auflistung gehört.

Beispiel

Im folgenden Codebeispiel werden Informationen zu dem Steuerelement gedruckt, zu dem eine ControlBindingsCollection gehört.

Private Sub GetControl(myBindings As ControlBindingsCollection)
    Dim c As Control = myBindings.Control
    Console.WriteLine(c.ToString())
End Sub
private void GetControl(ControlBindingsCollection myBindings)
{
   Control c = myBindings.Control;
   Console.WriteLine(c.ToString());
}
private:
   void GetControl( ControlBindingsCollection^ myBindings )
   {
      Control^ c = myBindings->Control;
      Console::WriteLine( c );
   }
private void GetControl(ControlBindingsCollection myBindings)
{
    Control c = myBindings.get_Control();
    Console.WriteLine(c.ToString());
} //GetControl

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

.NET Compact Framework

Unterstützt in: 2.0

Siehe auch

Referenz

ControlBindingsCollection-Klasse
ControlBindingsCollection-Member
System.Windows.Forms-Namespace