PropertyManager

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



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net