ControlBindingsCollection.Control 속성

정의

컬렉션이 속한 컨트롤을 가져옵니다.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

속성 값

Control

해당 컬렉션이 속한 Control입니다.The 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

적용 대상