Table of Contents

Class SortingCollection

Namespace
DevExpress.Xpo
Assembly
DevExpress.Xpo.v24.1.dll

A collection of DevExpress.Xpo.SortProperty objects.

[ListBindable(BindableSupport.No)]
public sealed class SortingCollection : IList, ICollection, IEnumerable<SortProperty>, IEnumerable
Inheritance
SortingCollection
Implements
IEnumerable<SortProperty>
Inherited Members

Constructors

SortingCollection()

Initializes a new instance of the SortingCollection class with default settings.

public SortingCollection()

SortingCollection(params SortProperty[])

Initializes a new instance of the SortingCollection class and populates it with the specified elements.

public SortingCollection(params SortProperty[] sortProperties)

Parameters

sortProperties SortProperty[]

An array of DevExpress.Xpo.SortProperty objects used to populate the SortingCollection.

SortingCollection(object, params SortProperty[])

Initializes a new instance of the SortingCollection class and populates it with the specified elements.

public SortingCollection(object owner, params SortProperty[] sortProperties)

Parameters

owner object
sortProperties SortProperty[]

An array of DevExpress.Xpo.SortProperty objects used to populate the SortingCollection.

Properties

Count

Gets the number of elements contained within the collection.

public int Count { get; }

Property Value

int

An integer value that specifies the number of elements contained within the collection.

this[int]

Provides indexed access to the elements in the collection.

public SortProperty this[int index] { get; }

Parameters

index int

A zero-based index that identifies an element.

Property Value

SortProperty

A DevExpress.Xpo.SortProperty object that represents an item at the specified position.

Methods

Add(SortProperty)

Adds the specified DevExpress.Xpo.SortProperty object to the collection.

public void Add(SortProperty sortProperty)

Parameters

sortProperty SortProperty

A DevExpress.Xpo.SortProperty object to add to the collection.

Add(SortingCollection)

Adds the DevExpress.Xpo.SortProperty objects from the specified collection.

public void Add(SortingCollection sortProperties)

Parameters

sortProperties SortingCollection

A SortingCollection object which represents the collection whose elements are added to the current collection.

AddRange(SortProperty[])

Adds an array of DevExpress.Xpo.SortProperty objects to the current collection.

public void AddRange(SortProperty[] sortProperties)

Parameters

sortProperties SortProperty[]

An array of DevExpress.Xpo.SortProperty objects to add to the collection.

Clear()

Clears the collection.

public void Clear()

GetEnumerator()

Returns a IEnumerator for the collection.

public IEnumerator GetEnumerator()

Returns

IEnumerator

An object which implements the IEnumerator interface.

RemoveAt(int)

Removes the specified element from the collection.

public void RemoveAt(int index)

Parameters

index int

A zero-based index that identifies the SortProperty object to remove from the collection.

Events

Changed

For internal use.

public event EventHandler Changed

Event Type

EventHandler