ControlBindingsCollection.Control Eigenschap

Definitie

Hiermee haalt u het besturingselement op waartoe de verzameling behoort.

public:
 property System::Windows::Forms::Control ^ Control { System::Windows::Forms::Control ^ get(); };
public System.Windows.Forms.Control Control { get; }
public System.Windows.Forms.Control? Control { get; }
member this.Control : System.Windows.Forms.Control
Public ReadOnly Property Control As Control

Waarde van eigenschap

De Control verzameling waartoe de verzameling behoort.

Voorbeelden

In het volgende codevoorbeeld wordt informatie afgedrukt over het besturingselement waartoe een ControlBindingsCollection besturingselement behoort.

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

Van toepassing op