ControlBindingsCollection.Control ControlBindingsCollection.Control ControlBindingsCollection.Control ControlBindingsCollection.Control Property

定义

获取该集合所属的控件。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

属性值

该集合所属的 ControlThe Control that the collection belongs to.

示例

下面的代码示例将打印有关ControlBindingsCollection属于的控件的信息。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

适用于