SortableObservableCollectionT Class

Represents a sortable, dynamic data collection that provides notifications when items get added, removed, or when the whole list is refreshed.

The items in the collection are automatically sorted by the selector method specified in SortingSelector property.

Definition

Namespace: DevCase.Runtime.Collections
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public class SortableObservableCollection<T> : ObservableCollection<T>
Inheritance
Object    CollectionT    ObservableCollectionT    SortableObservableCollectionT

Type Parameters

T

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Constructors

SortableObservableCollectionT Initializes a new instance of the SortableObservableCollectionT class

Properties

Count Gets the number of elements actually contained in the CollectionT.
(Inherited from CollectionT)
IsDescending Gets or sets a value indicating whether the sorting method is ascending or descending.
Item Gets or sets the element at the specified index.
(Inherited from CollectionT)
SortingSelector Gets or sets the selector method to sort the items in the collection.

Methods

Add Adds an object to the end of the CollectionT.
(Inherited from CollectionT)
Clear Removes all elements from the CollectionT.
(Inherited from CollectionT)
Contains Determines whether an element is in the CollectionT.
(Inherited from CollectionT)
CopyTo Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionT)
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetEnumerator Returns an enumerator that iterates through the CollectionT.
(Inherited from CollectionT)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
IndexOf Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.
(Inherited from CollectionT)
Insert Inserts an element into the CollectionT at the specified index.
(Inherited from CollectionT)
Move Moves the item at the specified index to a new location in the collection.
(Inherited from ObservableCollectionT)
Remove Removes the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionT)
RemoveAt Removes the element at the specified index of the CollectionT.
(Inherited from CollectionT)
ToString Returns a string that represents the current object.
(Inherited from Object)

Events

CollectionChanged Occurs when an item is added, removed, changed, moved, or the entire list is refreshed.
(Inherited from ObservableCollectionT)

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also

Reference

ObservableCollectionT