BindingsCollection.Item[Int32] BindingsCollection.Item[Int32] BindingsCollection.Item[Int32] BindingsCollection.Item[Int32] Property

정의

지정된 인덱스의 Binding를 가져옵니다.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

매개 변수

index
Int32 Int32 Int32 Int32

찾을 Binding의 인덱스입니다.The index of the Binding to find.

속성 값

지정된 인덱스의 Binding입니다.The Binding at the specified index.

예외

지정된 인덱스의 항목이 컬렉션에 포함되지 않은 경우The collection doesn't contain an item at the specified index.

예제

다음 예제에서는 인쇄 합니다 BindingMember 각 값 Binding 컨트롤의 BindingsCollection합니다.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

적용 대상

추가 정보