共用方式為


ControlBindingsCollection.Control 屬性

定義

取得集合所屬的控制項。

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

範例

下列程式碼範例會列印 所屬控制項 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

適用於