IBindingList.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //
  2. // System.ComponentModel.IBindingList.cs
  3. //
  4. // Author:
  5. // Rodrigo Moya ([email protected])
  6. //
  7. // (C) Ximian, Inc
  8. //
  9. using System.Collections;
  10. namespace System.ComponentModel
  11. {
  12. /// <summary>
  13. /// Provides the features required to support both complex and simple scenarios when binding to a data source.
  14. /// </summary>
  15. public interface IBindingList : IList, ICollection, IEnumerable
  16. {
  17. void AddIndex (PropertyDescriptor property);
  18. object AddNew ();
  19. void ApplySort (PropertyDescriptor property, ListSortDirection direction);
  20. int Find (PropertyDescriptor property, object key);
  21. void RemoveIndex (PropertyDescriptor property);
  22. void RemoveSort ();
  23. bool AllowEdit {
  24. get;
  25. }
  26. bool AllowNew {
  27. get;
  28. }
  29. bool AllowRemove {
  30. get;
  31. }
  32. bool IsSorted {
  33. get;
  34. }
  35. ListSortDirection SortDirection {
  36. get;
  37. }
  38. PropertyDescriptor SortProperty {
  39. get;
  40. }
  41. bool SupportsChangeNotification {
  42. get;
  43. }
  44. bool SupportsSearching {
  45. get;
  46. }
  47. bool SupportsSorting {
  48. get;
  49. }
  50. event ListChangedEventHandler ListChanged;
  51. }
  52. }