DekGenius.com
[ Team LiB ] Previous Section Next Section

PropertyManager

System.Windows.Forms (system.windows.forms.dll)class

This class, derived from BindingManagerBase represents a bag of Binding objects for a simple property-like data source.

While CurrencyManager deals with lists of objects, the PropertyManager is bound to a single item. Therefore, it is hardwired to look like a list with one entry (at Position zero).

It ensures that all the Binding objects update correctly as the value of this single property changes, by binding to an appropriately named event. For example, a component providing a Text property must also raise a TextChanged event.

See Binding for more information on the data-binding architecture.

public class PropertyManager : BindingManagerBase {
// Public Constructors
   public PropertyManager();
// Public Instance Properties
   public override int Count{get; }
// overrides BindingManagerBase
   public override object Current{get; }
// overrides BindingManagerBase
   public override int Position{set; get; }
// overrides BindingManagerBase
// Public Instance Methods
   public override void AddNew();  // overrides BindingManagerBase
   public override void CancelCurrentEdit();  // overrides BindingManagerBase
   public override void EndCurrentEdit();  // overrides BindingManagerBase
   public override PropertyDescriptorCollection GetItemProperties();  // overrides BindingManagerBase
   public override void RemoveAt(int index);  // overrides BindingManagerBase
   public override void ResumeBinding();  // overrides BindingManagerBase
   public override void SuspendBinding();  // overrides BindingManagerBase
// Protected Instance Methods
   protected internal override string GetListName(
        System.Collections.ArrayList listAccessors);  // overrides BindingManagerBase
   protected internal override void OnCurrentChanged(EventArgs ea);  // overrides BindingManagerBase
   protected override void UpdateIsBinding();  // overrides BindingManagerBase
}

Hierarchy

System.Object BindingManagerBase PropertyManager

    [ Team LiB ] Previous Section Next Section