Class
ProjectedView<T>

Provides a projected view over a source list.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Type Parameters:

T

The type for the projected item.

Syntax:

cs-api-definition
public class ProjectedView<T> : IEnumerable<T>, IEnumerable, INotifyCollectionChanged, IDisposable where T : new()

Inheritance: objectProjectedView<T>

Derived Classes: ObservableProjectedView<T>

Implements: IDisposableIEnumerableIEnumerable<T>INotifyCollectionChanged

Constructors

ProjectedView(IEnumerable)

Initializes a new instance of the ProjectedView<T> class.

Declaration

cs-api-definition
public ProjectedView(IEnumerable sourceList)

Parameters

sourceList

IEnumerable

The source list.

Properties

Count

Gets the number of projected items in the view.

Declaration

cs-api-definition
public int Count { get; }

Property Value

int

this[int]

Gets the projected item at the specified index.

Declaration

cs-api-definition
public T this[int index] { get; }

Parameters

index

int

Property Value

T

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration

cs-api-definition
public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>

A IEnumerator<T> that can be used to iterate through the collection.

Implements IEnumerable<T>.GetEnumerator()

OnDispose()

A protected virtual version of Dispose() used by inheriting classes.

Declaration

cs-api-definition
protected virtual void OnDispose()

OnItemAdded(T)

Called when a projected item is added.

Declaration

cs-api-definition
protected virtual void OnItemAdded(T addedItem)

Parameters

addedItem

T

The added item.

OnItemProjected(T, object)

Called when an item is projected.

Declaration

cs-api-definition
protected virtual void OnItemProjected(T projectedItem, object sourceItem)

Parameters

projectedItem

T

The projected item.

sourceItem

object

The source item.

OnItemRemoved(T)

Called when a projected item is removed.

Declaration

cs-api-definition
protected virtual void OnItemRemoved(T removedItem)

Parameters

removedItem

T

The removed item.

OnItemsClearing()

Called when the the ProjectedItemList is about to be cleared.

Declaration

cs-api-definition
protected virtual void OnItemsClearing()

Events

CollectionChanged

Occurs when the items list of the collection has changed, or the collection is reset.

Declaration

cs-api-definition
public event NotifyCollectionChangedEventHandler CollectionChanged

Event Value

NotifyCollectionChangedEventHandler

Implements INotifyCollectionChanged.CollectionChanged