Class
SortDescriptorCollection

Definition

Namespace:Telerik.WinControls.Data

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class SortDescriptorCollection : NotifyCollection<SortDescriptor>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

Inheritance: objectCollection<SortDescriptor>NotifyCollection<SortDescriptor>SortDescriptorCollection

Derived Classes: GridViewSortDescriptorCollection

Implements: ICollectionIEnumerableIListINotifyCollectionChangedINotifyPropertyChanged

Inherited Members NotifyCollection<SortDescriptor>.EmptyNotifyCollection<SortDescriptor>.Move(int, int)NotifyCollection<SortDescriptor>.AddRange(params SortDescriptor[])NotifyCollection<SortDescriptor>.AddRange(IEnumerable<SortDescriptor>)NotifyCollection<SortDescriptor>.BeginUpdate()NotifyCollection<SortDescriptor>.EndUpdate()NotifyCollection<SortDescriptor>.EndUpdate(bool)NotifyCollection<SortDescriptor>.DeferRefresh()NotifyCollection<SortDescriptor>.MoveItem(int, int)NotifyCollection<SortDescriptor>.CreateEventArguments(NotifyCollectionChangedAction)NotifyCollection<SortDescriptor>.OnCollectionChanged(NotifyCollectionChangedEventArgs)NotifyCollection<SortDescriptor>.OnPropertyChanged(PropertyChangedEventArgs)NotifyCollection<SortDescriptor>.OnPropertyChanged(string)NotifyCollection<SortDescriptor>.VersionNotifyCollection<SortDescriptor>.SuspendedNotifyCollection<SortDescriptor>.CollectionChangedNotifyCollection<SortDescriptor>.PropertyChangedCollection<SortDescriptor>.Add(SortDescriptor)Collection<SortDescriptor>.Clear()Collection<SortDescriptor>.CopyTo(SortDescriptor[], int)Collection<SortDescriptor>.Contains(SortDescriptor)Collection<SortDescriptor>.GetEnumerator()Collection<SortDescriptor>.IndexOf(SortDescriptor)Collection<SortDescriptor>.Insert(int, SortDescriptor)Collection<SortDescriptor>.Remove(SortDescriptor)Collection<SortDescriptor>.RemoveAt(int)Collection<SortDescriptor>.CountCollection<SortDescriptor>.ItemsCollection<SortDescriptor>.this[int]

Constructors

SortDescriptorCollection()

Declaration

cs-api-definition
public SortDescriptorCollection()

Properties

Expression

Gets or sets the expression.

Declaration

cs-api-definition
public virtual string Expression { get; set; }

Property Value

string

The expression.

UseCaseSensitiveFieldNames

Gets or sets a value indicating whether fields with names that differ only in the casing should be considered different.

Declaration

cs-api-definition
public bool UseCaseSensitiveFieldNames { get; set; }

Property Value

bool

Methods

Add(string, ListSortDirection)

Adds the specified property name.

Declaration

cs-api-definition
public void Add(string propertyName, ListSortDirection direction)

Parameters

propertyName

string

Name of the property.

direction

ListSortDirection

The direction.

ClearItems()

Declaration

cs-api-definition
protected override void ClearItems()

Overrides NotifyCollection<SortDescriptor>.ClearItems()

Contains(string)

Determines whether [contains] [the specified property name].

Declaration

cs-api-definition
public bool Contains(string propertyName)

Parameters

propertyName

string

Name of the property.

Returns

bool

true if [contains] [the specified property name]; otherwise, false.

CreateEventArguments(NotifyCollectionChangedAction, object, int)

Declaration

cs-api-definition
protected override NotifyCollectionChangedEventArgs CreateEventArguments(NotifyCollectionChangedAction action, object item, int index)

Parameters

action

NotifyCollectionChangedAction

item

object

index

int

Returns

NotifyCollectionChangedEventArgs

Overrides NotifyCollection<SortDescriptor>.CreateEventArguments(NotifyCollectionChangedAction, object, int)

CreateEventArguments(NotifyCollectionChangedAction, object, object, int)

Declaration

cs-api-definition
protected override NotifyCollectionChangedEventArgs CreateEventArguments(NotifyCollectionChangedAction action, object oldItem, object item, int index)

Parameters

action

NotifyCollectionChangedAction

oldItem

object

item

object

index

int

Returns

NotifyCollectionChangedEventArgs

Overrides NotifyCollection<SortDescriptor>.CreateEventArguments(NotifyCollectionChangedAction, object, object, int)

IndexOf(string)

Indexes the of.

Declaration

cs-api-definition
public int IndexOf(string propertyName)

Parameters

propertyName

string

Name of the property.

Returns

int

InsertItem(int, SortDescriptor)

Declaration

cs-api-definition
protected override void InsertItem(int index, SortDescriptor item)

Parameters

index

int

item

SortDescriptor

Overrides NotifyCollection<SortDescriptor>.InsertItem(int, SortDescriptor)

Remove(string)

Removes the specified property name.

Declaration

cs-api-definition
public bool Remove(string propertyName)

Parameters

propertyName

string

Name of the property.

Returns

bool

RemoveItem(int)

Declaration

cs-api-definition
protected override void RemoveItem(int index)

Parameters

index

int

Overrides NotifyCollection<SortDescriptor>.RemoveItem(int)

SetItem(int, SortDescriptor)

Declaration

cs-api-definition
protected override void SetItem(int index, SortDescriptor item)

Parameters

index

int

item

SortDescriptor

Overrides NotifyCollection<SortDescriptor>.SetItem(int, SortDescriptor)

ToString()

Returns a string that represents this instance.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents this instance.

Overrides object.ToString()