ControlBindingsCollection.Control Propiedad

Definición

Obtiene el control al que pertenece la colección.Gets the control that the collection belongs to.

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

Valor de propiedad

Control

Control al que pertenece la colección.The Control that the collection belongs to.

Ejemplos

En el ejemplo de código siguiente se imprime información sobre el control ControlBindingsCollection al que pertenece.The following code example prints information about the control that a ControlBindingsCollection belongs to.

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

Se aplica a