BindingsCollection.Item[Int32] 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 Binding at the specified index.
public:
property System::Windows::Forms::Binding ^ default[int] { System::Windows::Forms::Binding ^ get(int index); };
public System.Windows.Forms.Binding this[int index] { get; }
member this.Item(int) : System.Windows.Forms.Binding
Default Public ReadOnly Property Item(index As Integer) As Binding
Parameters
Property Value
The Binding at the specified index.
Exceptions
The collection doesn't contain an item at the specified index.
Examples
The following example prints the BindingMember value of each Binding in a control's BindingsCollection.
void PrintBindingInfo()
{
BindingsCollection^ bc = text1->DataBindings;
for ( int i = 0; i < bc->Count; i++ )
Console::WriteLine( bc[ i ]->BindingMemberInfo.BindingMember );
}
private void PrintBindingInfo()
{
BindingsCollection bc = text1.DataBindings;
for(int i = 0; i < bc.Count; i++)
Console.WriteLine(bc[i].BindingMemberInfo.BindingMember);
}
Private Sub PrintBindingInfo()
Dim bc As BindingsCollection = Text1.DataBindings
Dim i As Integer
For i = 0 to bc.Count - 1
Console.WriteLine(bc(i).BindingMemberInfo.BindingMember)
Next i
End Sub
Applies to
See also
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.