Provides a sorted view into an existing IList(Of T). More...
Public Member Functions | |
IEnumerator< T > | GetEnumerator () |
Returns an enumerator for the list, honoring any sort that is active at the time. More... | |
void | AddIndex (PropertyDescriptor property) |
Implemented by IList source object. More... | |
object | AddNew () |
Implemented by IList source object. More... | |
void | ApplySort (string propertyName, ListSortDirection direction) |
Applies a sort to the view. More... | |
void | ApplySort (PropertyDescriptor property, ListSortDirection direction) |
Applies a sort to the view. More... | |
int | Find (string propertyName, object key) |
Finds an item in the view More... | |
int | Find (PropertyDescriptor property, object key) |
Implemented by IList source object. More... | |
void | RemoveIndex (PropertyDescriptor property) |
Implemented by IList source object. More... | |
void | RemoveSort () |
Removes any sort currently applied to the view. More... | |
void | CopyTo (T[] array, int arrayIndex) |
Implemented by IList source object. More... | |
void | Add (T item) |
Implemented by IList source object. More... | |
void | Clear () |
Implemented by IList source object. More... | |
bool | Contains (T item) |
Implemented by IList source object. More... | |
int | IndexOf (T item) |
Implemented by IList source object. More... | |
void | Insert (int index, T item) |
Implemented by IList source object. More... | |
bool | Remove (T item) |
Implemented by IList source object. More... | |
void | RemoveAt (int index) |
Removes the child object at the specified index in the list, resorting the display as needed. More... | |
SortedBindingList (IList< T > list) | |
Creates a new view based on the provided IList object. More... | |
T[] | ToArray () |
Get an array containing all items in the list. More... | |
Protected Member Functions | |
void | OnListChanged (ListChangedEventArgs e) |
Raises the ListChanged event. More... | |
Properties | |
bool | AllowEdit [get] |
Implemented by IList source object. More... | |
bool | AllowNew [get] |
Implemented by IList source object. More... | |
bool | AllowRemove [get] |
Implemented by IList source object. More... | |
bool | IsSorted [get] |
Gets a value indicating whether the view is currently sorted. More... | |
ListSortDirection | SortDirection [get] |
Returns the direction of the current sort. More... | |
PropertyDescriptor | SortProperty [get] |
Returns the PropertyDescriptor of the current sort. More... | |
bool | SupportsChangeNotification [get] |
Returns true since this object does raise the ListChanged event. More... | |
bool | SupportsSearching [get] |
Implemented by IList source object. More... | |
bool | SupportsSorting [get] |
Returns true. More... | |
int | Count [get] |
Implemented by IList source object. More... | |
bool | IsReadOnly [get] |
Implemented by IList source object. More... | |
T | this[int index] [getset] |
Gets the child item at the specified index in the list, honoring the sort order of the items. More... | |
IList< T > | SourceList [get] |
Gets the source list over which this SortedBindingList is a view. More... | |
Events | |
ListChangedEventHandler | ListChanged |
Raised to indicate that the list's data has changed. More... | |
Provides a sorted view into an existing IList(Of T).
T | Type of child object contained by the original list or collection. |
Definition at line 25 of file SortedBindingList.cs.
Csla.SortedBindingList< T >.SortedBindingList | ( | IList< T > | list | ) |
Creates a new view based on the provided IList object.
list | The IList (collection) containing the data. |
Definition at line 736 of file SortedBindingList.cs.
void Csla.SortedBindingList< T >.Add | ( | T | item | ) |
Implemented by IList source object.
item | Item to add to the list. |
Definition at line 551 of file SortedBindingList.cs.
void Csla.SortedBindingList< T >.AddIndex | ( | PropertyDescriptor | property | ) |
Implemented by IList source object.
property | Property on which to build the index. |
Definition at line 258 of file SortedBindingList.cs.
object Csla.SortedBindingList< T >.AddNew | ( | ) |
Implemented by IList source object.
Definition at line 267 of file SortedBindingList.cs.
void Csla.SortedBindingList< T >.ApplySort | ( | PropertyDescriptor | property, |
ListSortDirection | direction | ||
) |
Applies a sort to the view.
property | A PropertyDescriptor for the property on which to sort. |
direction | The direction to sort the data. |
Definition at line 344 of file SortedBindingList.cs.
void Csla.SortedBindingList< T >.ApplySort | ( | string | propertyName, |
ListSortDirection | direction | ||
) |
Applies a sort to the view.
propertyName | The text name of the property on which to sort. |
direction | The direction to sort the data. |
Definition at line 332 of file SortedBindingList.cs.
void Csla.SortedBindingList< T >.Clear | ( | ) |
Implemented by IList source object.
Definition at line 565 of file SortedBindingList.cs.
bool Csla.SortedBindingList< T >.Contains | ( | T | item | ) |
Implemented by IList source object.
item | Item for which to search. |
Definition at line 574 of file SortedBindingList.cs.
void Csla.SortedBindingList< T >.CopyTo | ( | T[] | array, |
int | arrayIndex | ||
) |
Implemented by IList source object.
array | Array to receive the data. |
arrayIndex | Starting array index. |
Definition at line 507 of file SortedBindingList.cs.
int Csla.SortedBindingList< T >.Find | ( | PropertyDescriptor | property, |
object | key | ||
) |
Implemented by IList source object.
key | Key value for which to search. |
property | Property to search for the key value. |
Definition at line 395 of file SortedBindingList.cs.
int Csla.SortedBindingList< T >.Find | ( | string | propertyName, |
object | key | ||
) |
Finds an item in the view
propertyName | Name of the property to search |
key | Value to find |
Definition at line 357 of file SortedBindingList.cs.
IEnumerator< T > Csla.SortedBindingList< T >.GetEnumerator | ( | ) |
Returns an enumerator for the list, honoring any sort that is active at the time.
Definition at line 241 of file SortedBindingList.cs.
int Csla.SortedBindingList< T >.IndexOf | ( | T | item | ) |
Implemented by IList source object.
item | Item for which to search. |
Definition at line 588 of file SortedBindingList.cs.
void Csla.SortedBindingList< T >.Insert | ( | int | index, |
T | item | ||
) |
Implemented by IList source object.
index | Index at which to insert the item. |
item | Item to insert. |
Definition at line 604 of file SortedBindingList.cs.
|
protected |
Raises the ListChanged event.
e | Event arguments. |
Definition at line 430 of file SortedBindingList.cs.
bool Csla.SortedBindingList< T >.Remove | ( | T | item | ) |
Implemented by IList source object.
item | Item to be removed. |
Definition at line 643 of file SortedBindingList.cs.
void Csla.SortedBindingList< T >.RemoveAt | ( | int | index | ) |
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.
Definition at line 662 of file SortedBindingList.cs.
void Csla.SortedBindingList< T >.RemoveIndex | ( | PropertyDescriptor | property | ) |
Implemented by IList source object.
property | Property for which the index should be removed. |
Definition at line 441 of file SortedBindingList.cs.
void Csla.SortedBindingList< T >.RemoveSort | ( | ) |
Removes any sort currently applied to the view.
Definition at line 450 of file SortedBindingList.cs.
T[] Csla.SortedBindingList< T >.ToArray | ( | ) |
Get an array containing all items in the list.
Definition at line 909 of file SortedBindingList.cs.
|
get |
Implemented by IList source object.
Definition at line 288 of file SortedBindingList.cs.
|
get |
Implemented by IList source object.
Definition at line 302 of file SortedBindingList.cs.
|
get |
Implemented by IList source object.
Definition at line 316 of file SortedBindingList.cs.
|
get |
Implemented by IList source object.
Definition at line 527 of file SortedBindingList.cs.
|
get |
Implemented by IList source object.
Definition at line 622 of file SortedBindingList.cs.
|
get |
Gets a value indicating whether the view is currently sorted.
Definition at line 409 of file SortedBindingList.cs.
|
get |
Returns the direction of the current sort.
Definition at line 458 of file SortedBindingList.cs.
|
get |
Returns the PropertyDescriptor of the current sort.
Definition at line 466 of file SortedBindingList.cs.
|
get |
Gets the source list over which this SortedBindingList is a view.
Definition at line 710 of file SortedBindingList.cs.
|
get |
Returns true since this object does raise the ListChanged event.
Definition at line 475 of file SortedBindingList.cs.
|
get |
Implemented by IList source object.
Definition at line 483 of file SortedBindingList.cs.
|
get |
|
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. |
Definition at line 683 of file SortedBindingList.cs.
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.
Definition at line 424 of file SortedBindingList.cs.