diff options
Diffstat (limited to 'mcs/class/System/System.ComponentModel/IBindingList.cs')
-rw-r--r-- | mcs/class/System/System.ComponentModel/IBindingList.cs | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/mcs/class/System/System.ComponentModel/IBindingList.cs b/mcs/class/System/System.ComponentModel/IBindingList.cs new file mode 100644 index 00000000000..8de1b197f17 --- /dev/null +++ b/mcs/class/System/System.ComponentModel/IBindingList.cs @@ -0,0 +1,69 @@ +// +// System.ComponentModel.IBindingList.cs +// +// Author: +// Rodrigo Moya (rodrigo@ximian.com) +// +// (C) Ximian, Inc +// + +using System.Collections; + +namespace System.ComponentModel +{ + /// <summary> + /// Provides the features required to support both complex and simple scenarios when binding to a data source. + /// </summary> + public interface IBindingList : IList, ICollection, IEnumerable + { + void AddIndex (PropertyDescriptor property); + + object AddNew (); + + void ApplySort (PropertyDescriptor property, ListSortDirection direction); + + int Find (PropertyDescriptor property, object key); + + void RemoveIndex (PropertyDescriptor property); + + void RemoveSort (); + + bool AllowEdit { + get; + } + + bool AllowNew { + get; + } + + bool AllowRemove { + get; + } + + bool IsSorted { + get; + } + + ListSortDirection SortDirection { + get; + } + + PropertyDescriptor SortProperty { + get; + } + + bool SupportsChangeNotification { + get; + } + + bool SupportsSearching { + get; + } + + bool SupportsSorting { + get; + } + + event ListChangedEventHandler ListChanged; + } +} |