Partager via


ControlBindingsCollection.Control Propriété

Définition

Obtient le contrôle auquel la collection appartient.

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

Valeur de propriété

Control auquel appartient la collection.

Exemples

L’exemple de code suivant imprime des informations sur le contrôle auquel appartient un ControlBindingsCollection .

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

S’applique à