![]() |
CSLA .NET 10.0.0
A home for your business logic
|
Provides a sorted view into an existing IList(Of T). More...
Public Member Functions | |
| ListItem (object key, int baseIndex) | |
| int | CompareTo (ListItem? other) |
| override string | ToString () |
| SortedEnumerator (IList< T > list, List< ListItem > sortIndex, ListSortDirection direction) | |
| bool | MoveNext () |
| void | Reset () |
| void | Dispose () |
| IEnumerator< T > | GetEnumerator () |
| Returns an enumerator for the list, honoring any sort that is active at the time. | |
| void | AddIndex (PropertyDescriptor property) |
| Implemented by IList source object. | |
| object? | AddNew () |
| Implemented by IList source object. | |
| void | ApplySort (string? propertyName, ListSortDirection direction) |
| Applies a sort to the view. | |
| void | ApplySort (PropertyDescriptor? property, ListSortDirection direction) |
| Applies a sort to the view. | |
| int | Find (string propertyName, object key) |
| Finds an item in the view. | |
| int | Find (PropertyDescriptor property, object key) |
| Implemented by IList source object. | |
| void | RemoveIndex (PropertyDescriptor property) |
| Implemented by IList source object. | |
| void | RemoveSort () |
| Removes any sort currently applied to the view. | |
| void | CopyTo (T[] array, int arrayIndex) |
| Implemented by IList source object. | |
| void | Add (T item) |
| Implemented by IList source object. | |
| void | Clear () |
| Implemented by IList source object. | |
| bool | Contains (T item) |
| Implemented by IList source object. | |
| int | IndexOf (T item) |
| Implemented by IList source object. | |
| void | Insert (int index, T item) |
| Implemented by IList source object. | |
| bool | Remove (T item) |
| Implemented by IList source object. | |
| void | RemoveAt (int index) |
| Removes the child object at the specified index in the list, resorting the display as needed. | |
| SortedBindingList (IList< T > list) | |
| Creates a new view based on the provided IList object. | |
| T[] | ToArray () |
| Get an array containing all items in the list. | |
Protected Member Functions | |
| void | OnListChanged (ListChangedEventArgs e) |
| Raises the ListChanged event. | |
Properties | |
| object | Key [get] |
| int | BaseIndex [get, set] |
| T | Current [get] |
| bool | AllowEdit [get] |
| Implemented by IList source object. | |
| bool | AllowNew [get] |
| Implemented by IList source object. | |
| bool | AllowRemove [get] |
| Implemented by IList source object. | |
| bool | IsSorted [get] |
| Gets a value indicating whether the view is currently sorted. | |
| ListSortDirection | SortDirection = ListSortDirection.Ascending [get] |
| Returns the direction of the current sort. | |
| PropertyDescriptor? | SortProperty [get] |
| Returns the PropertyDescriptor of the current sort. | |
| bool | SupportsChangeNotification [get] |
| Returns true since this object does raise the ListChanged event. | |
| bool | SupportsSearching [get] |
| Implemented by IList source object. | |
| bool | SupportsSorting [get] |
| Returns true. Sorting is supported. | |
| int | Count [get] |
| Implemented by IList source object. | |
| bool | IsReadOnly [get] |
| Implemented by IList source object. | |
| T | this[int index] [get, set] |
| Gets the child item at the specified index in the list, honoring the sort order of the items. | |
| IList< T > | SourceList [get] |
| Gets the source list over which this SortedBindingList is a view. | |
Events | |
| ListChangedEventHandler? | ListChanged |
| Raised to indicate that the list's data has changed. | |
Provides a sorted view into an existing IList(Of T).
| T | Type of child object contained by the original list or collection. |
| T | : | notnull |
|
inline |
Implemented by IList source object.
| item | Item to add to the list. |
| ArgumentNullException | item is null. |
|
inline |
Implemented by IList source object.
| property | Property on which to build the index. |
| ArgumentNullException | property is null. |
|
inline |
Implemented by IList source object.
|
inline |
Applies a sort to the view.
| property | A PropertyDescriptor for the property on which to sort. |
| direction | The direction to sort the data. |
|
inline |
Applies a sort to the view.
| propertyName | The text name of the property on which to sort. |
| direction | The direction to sort the data. |
|
inline |
Implemented by IList source object.
|
inline |
|
inline |
Implemented by IList source object.
| item | Item for which to search. |
| ArgumentNullException | item is null. |
|
inline |
Implemented by IList source object.
| array | Array to receive the data. |
| arrayIndex | Starting array index. |
| ArgumentNullException | array is null. |
|
inline |
|
inline |
Implemented by IList source object.
| key | Key value for which to search. |
| property | Property to search for the key value. |
| ArgumentNullException | property or key is null. |
|
inline |
Finds an item in the view.
| propertyName | Name of the property to search |
| key | Value to find |
| ArgumentNullException | key is null. |
| ArgumentException | propertyName is null, string.Empty or only consists of white spaces. |
|
inline |
Returns an enumerator for the list, honoring any sort that is active at the time.
|
inline |
Implemented by IList source object.
| item | Item for which to search. |
| ArgumentNullException | item is null. |
|
inline |
Implemented by IList source object.
| index | Index at which to insert the item. |
| item | Item to insert. |
| ArgumentNullException | item is null. |
|
inline |
|
inline |
|
inlineprotected |
Raises the ListChanged event.
| e | Event arguments. |
| ArgumentNullException | e is null. |
|
inline |
Implemented by IList source object.
| item | Item to be removed. |
| ArgumentNullException | item is null. |
|
inline |
Removes the child object at the specified index in the list, resorting the display as needed.
| index | The index of the object to remove. |
See Chapter 5 for details on how and why the list is altered during the remove process.
|
inline |
Implemented by IList source object.
| property | Property for which the index should be removed. |
| ArgumentNullException | property is null. |
|
inline |
Removes any sort currently applied to the view.
|
inline |
|
inline |
Creates a new view based on the provided IList object.
| list | The IList (collection) containing the data. |
| ArgumentNullException | list is null. |
|
inline |
|
inline |
Get an array containing all items in the list.
|
inline |
|
get |
Implemented by IList source object.
|
get |
Implemented by IList source object.
|
get |
Implemented by IList source object.
|
getset |
|
get |
Implemented by IList source object.
|
get |
|
get |
Implemented by IList source object.
|
get |
Gets a value indicating whether the view is currently sorted.
|
get |
|
get |
Returns the direction of the current sort.
|
get |
Returns the PropertyDescriptor of the current sort.
|
get |
Gets the source list over which this SortedBindingList is a view.
|
get |
Returns true since this object does raise the ListChanged event.
|
get |
Implemented by IList source object.
|
get |
Returns true. Sorting is supported.
|
getset |
Gets the child item at the specified index in the list, honoring the sort order of the items.
| index | The index of the item in the sorted list. |
| ArgumentNullException | value is null. |
| ListChangedEventHandler? Csla.SortedBindingList< T >.ListChanged |
Raised to indicate that the list's data has changed.
This event is raised if the underling IList object's data changes (assuming the underling IList also implements the IBindingList interface). It is also raised if the sort property or direction is changed to indicate that the view's data has changed. See Chapter 5 for details.