Show / Hide Table of Contents

Class SortDescriptionCollection

Implementation of a dynamic data collection of SortDescriptions.

Inheritance
System.Object
System.Collections.ObjectModel.Collection<SortDescription>
SortDescriptionCollection
Implements
System.Collections.Generic.IList<SortDescription>
System.Collections.Generic.ICollection<SortDescription>
System.Collections.Generic.IReadOnlyList<SortDescription>
System.Collections.Generic.IReadOnlyCollection<SortDescription>
System.Collections.Generic.IEnumerable<SortDescription>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.Collections.Specialized.INotifyCollectionChanged
Inherited Members
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.System.Collections.IList.get_Item(System.Int32)
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.Add(System.ComponentModel.SortDescription)
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.Clear()
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.Contains(System.ComponentModel.SortDescription)
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.CopyTo(System.ComponentModel.SortDescription[], System.Int32)
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.GetEnumerator()
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.IndexOf(System.ComponentModel.SortDescription)
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.Insert(System.Int32, System.ComponentModel.SortDescription)
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.Remove(System.ComponentModel.SortDescription)
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.RemoveAt(System.Int32)
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.System.Collections.IList.Add(System.Object)
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.System.Collections.IList.Contains(System.Object)
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.System.Collections.IList.IndexOf(System.Object)
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.System.Collections.IList.Remove(System.Object)
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.Count
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.Item[System.Int32]
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.Items
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.System.Collections.Generic.ICollection<System.ComponentModel.SortDescription>.IsReadOnly
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.System.Collections.ICollection.IsSynchronized
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.System.Collections.ICollection.SyncRoot
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.System.Collections.IList.IsFixedSize
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.System.Collections.IList.IsReadOnly
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.System.Collections.IList.Item[System.Int32]
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.ComponentModel
Assembly: OpenSilver.dll
Syntax
public class SortDescriptionCollection : Collection<SortDescription>, IList<SortDescription>, ICollection<SortDescription>, IReadOnlyList<SortDescription>, IReadOnlyCollection<SortDescription>, IEnumerable<SortDescription>, IList, ICollection, IEnumerable, INotifyCollectionChanged

Fields

| Improve this Doc View Source

Empty

returns an empty and non-modifiable SortDescriptionCollection

Declaration
public static readonly SortDescriptionCollection Empty
Field Value
Type Description
SortDescriptionCollection

Methods

| Improve this Doc View Source

ClearItems()

called by base class Collection<T> when the list is being cleared; raises a CollectionChanged event to any listeners

Declaration
protected override void ClearItems()
Overrides
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.ClearItems()
| Improve this Doc View Source

InsertItem(Int32, SortDescription)

called by base class Collection<T> when an item is added to list; raises a CollectionChanged event to any listeners

Declaration
protected override void InsertItem(int index, SortDescription item)
Parameters
Type Name Description
System.Int32 index
SortDescription item
Overrides
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.InsertItem(System.Int32, System.ComponentModel.SortDescription)
| Improve this Doc View Source

RemoveItem(Int32)

called by base class Collection<T> when an item is removed from list; raises a CollectionChanged event to any listeners

Declaration
protected override void RemoveItem(int index)
Parameters
Type Name Description
System.Int32 index
Overrides
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.RemoveItem(System.Int32)
| Improve this Doc View Source

SetItem(Int32, SortDescription)

called by base class Collection<T> when an item is set in the list; raises a CollectionChanged event to any listeners

Declaration
protected override void SetItem(int index, SortDescription item)
Parameters
Type Name Description
System.Int32 index
SortDescription item
Overrides
System.Collections.ObjectModel.Collection<System.ComponentModel.SortDescription>.SetItem(System.Int32, System.ComponentModel.SortDescription)

Events

| Improve this Doc View Source

CollectionChanged

Occurs when the collection changes, either by adding or removing an item.

Declaration
protected event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type Description
System.Collections.Specialized.NotifyCollectionChangedEventHandler

Explicit Interface Implementations

| Improve this Doc View Source

INotifyCollectionChanged.CollectionChanged

Occurs when the collection changes, either by adding or removing an item.

Declaration
event NotifyCollectionChangedEventHandler INotifyCollectionChanged.CollectionChanged
Returns
Type Description
System.Collections.Specialized.NotifyCollectionChangedEventHandler
Remarks

see System.Collections.Specialized.INotifyCollectionChanged

Implements

System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.Collections.Specialized.INotifyCollectionChanged
  • Improve this Doc
  • View Source