ControlBindingsCollection.Control Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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; }
public System.Windows.Forms.Control? Control { get; }
member this.Control : System.Windows.Forms.Control
Public ReadOnly Property Control As Control
Property Value
The Control that the collection belongs to.
Examples
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
Applies to
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา