Class SortDescriptionCollection
A collection of objects that used to maintain the sorting information.
Inheritance
System.Object
SortDescriptionCollection
Implements
System.Collections.Specialized.INotifyCollectionChanged
Namespace: Syncfusion.Data
Assembly: Syncfusion.Data.UWP.dll
Syntax
public class SortDescriptionCollection : Collection<SortDescription>, INotifyCollectionChanged
Constructors
SortDescriptionCollection()
Initializes a new instance of the SortDescriptionCollection class.
Declaration
public SortDescriptionCollection()
Properties
Empty
Gets an empty and non-modifiable instance of SortDescriptionCollection.
Declaration
public static SortDescriptionCollection Empty { get; }
Property Value
Type |
---|
SortDescriptionCollection |
Methods
ClearItems()
Removes all the items from the collection.
Declaration
protected override void ClearItems()
InsertItem(Int32, SortDescription)
Inserts an item into the collection at the specified index.
Declaration
protected override void InsertItem(int index, SortDescription item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index where the |
Syncfusion.Data.SortDescription | item | The object to insert in the collection. |
RemoveItem(Int32)
Removes the item at the specified index in the collection.
Declaration
protected override void RemoveItem(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the element to remove. |
SetItem(Int32, SortDescription)
Replaces the element at the specified index in the collection.
Declaration
protected override void SetItem(int index, SortDescription item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the element to replace. |
Syncfusion.Data.SortDescription | item | The new item to be inserted at the specified index. |
Events
CollectionChanged
Occurs when an item is added or removed in the collection.
Declaration
protected event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type |
---|
System.Collections.Specialized.NotifyCollectionChangedEventHandler |
Implements
System.Collections.Specialized.INotifyCollectionChanged