อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


Binding.BindingManagerBase Property

Definition

Gets the BindingManagerBase for this Binding.

C#
public System.Windows.Forms.BindingManagerBase BindingManagerBase { get; }
C#
public System.Windows.Forms.BindingManagerBase? BindingManagerBase { get; }

Property Value

The BindingManagerBase that manages this Binding.

Examples

The following code example gets the BindingManagerBase of every Binding on the form, and prints the Position property for each BindingManagerBase.

C#
private void PrintPositions()
{
   foreach(Control c in this.Controls)
   {
      foreach(Binding xBinding in c.DataBindings)
      {
         Console.WriteLine
         (c.ToString() + "\t Position: " + 
         xBinding.BindingManagerBase.Position);
      }
   }
}

Remarks

Use the BindingManagerBase to iterate through a data-bound list by incrementing or decrementing the Position property. The BindingManagerBase class is abstract. The CurrencyManager class, which manages data-bound lists, inherits from the BindingManagerBase class.

Applies to

ผลิตภัณฑ์ เวอร์ชัน
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10