ControlBindingsCollection.Control 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取该集合所属的控件。
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。
示例
下面的代码示例打印有关属于控件 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