public class SortableObservableCollection<T> : ObservableCollection<T>
Public Class SortableObservableCollection(Of T)
Inherits ObservableCollection(Of T)
Dim instance As SortableObservableCollection(Of T)
generic<typename T>
public ref class SortableObservableCollection : public ObservableCollection<T>
type SortableObservableCollection<'T> =
class
inherit ObservableCollection<'T>
end
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
Dim collection As New SortableObservableCollection(Of KeyValuePair(Of Integer, String)) With {
.SortingSelector = Function(pair As KeyValuePair(Of Integer, String)) pair.Key,
.IsDescending = True
}
collection.Add(New KeyValuePair(Of Integer, String)(7, "abc"))
collection.Add(New KeyValuePair(Of Integer, String)(3, "xey"))
collection.Add(New KeyValuePair(Of Integer, String)(6, "ftu"))
For Each pair As KeyValuePair(Of Integer, String) In collection
Console.WriteLine(pair)
Next pair
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
SortableObservableCollectionT | Initializes a new instance of the SortableObservableCollectionT class |
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. |
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) |
CollectionChanged | Occurs when an item is added, removed, changed, moved, or the entire list is refreshed. (Inherited from ObservableCollectionT) |
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) |