New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls.Data

Assembly:Telerik.WinControls.dll

Type Parameters:

TDataItem

Syntax:

C#
public class SnapshotCollectionView<TDataItem> : ISnapshotCollectionView<TDataItem>, ICollectionView<TDataItem>, IReadOnlyCollection<TDataItem>, IEnumerable where TDataItem : IDataItem

Inheritance: objectSnapshotCollectionView<TDataItem>

Implements: ICollectionView<TDataItem>IEnumerableIReadOnlyCollection<TDataItem>ISnapshotCollectionView<TDataItem>

Constructors

C#
public SnapshotCollectionView(IEnumerable<TDataItem> sourceCollection, RadCollectionView<TDataItem> sourceView)
Parameters:sourceCollectionIEnumerable<TDataItem>sourceViewRadCollectionView<TDataItem>

Properties

Gets the count.

C#
public int Count { get; }
Property Value:

The count.

Implements: IReadOnlyCollection<TDataItem>.Count

C#
protected virtual GroupBuilder<TDataItem> GroupBuilder { get; }

GroupComparer

IComparer<Group<TDataItem>>

C#
public virtual IComparer<Group<TDataItem>> GroupComparer { get; set; }

Implements: ICollectionView<TDataItem>.GroupComparer

Gets or sets the group predicate.

C#
public virtual GroupPredicate<TDataItem> GroupPredicate { get; set; }
Property Value:

The group predicate.

Gets the groups.

C#
public GroupCollection<TDataItem> Groups { get; }
Property Value:

The groups.

Implements: ICollectionView<TDataItem>.Groups

Indexer

Index<TDataItem>

C#
protected virtual Index<TDataItem> Indexer { get; }

SourceCollection

IEnumerable<TDataItem>

Gets the source collection.

C#
public IEnumerable<TDataItem> SourceCollection { get; }
Property Value:

The source collection.

Implements: ICollectionView<TDataItem>.SourceCollection

C#
protected virtual RadCollectionView<TDataItem> SourceView { get; }

this[int]

TDataItem

Gets the item at the specified index.

C#
public TDataItem this[int index] { get; }
Parameters:indexint

Implements: IReadOnlyCollection<TDataItem>.this[int]

Methods

Determines whether [contains] [the specified value].

C#
public bool Contains(TDataItem value)
Parameters:valueTDataItem

The value.

Returns:

bool

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

Implements: IReadOnlyCollection<TDataItem>.Contains(TDataItem)

Copies to.

C#
public void CopyTo(TDataItem[] array, int index)
Parameters:arrayTDataItem[]

The array.

indexint

The index.

Implements: IReadOnlyCollection<TDataItem>.CopyTo(TDataItem[], int)

Evaluates the specified expression.

C#
public object Evaluate(string expression, int startIndex, int count)
Parameters:expressionstring

The expression.

startIndexint

The start index.

countint

The count.

Returns:

object

Evaluates the specified expression.

C#
public object Evaluate(string expression, TDataItem item)
Parameters:expressionstring

The expression.

itemTDataItem

The item.

Returns:

object

C#
public IEnumerator<TDataItem> GetEnumerator()
Returns:

IEnumerator<TDataItem>

Indexes the of.

C#
public int IndexOf(TDataItem value)
Parameters:valueTDataItem

The value.

Returns:

int

Implements: IReadOnlyCollection<TDataItem>.IndexOf(TDataItem)

C#
public void Load(IEnumerable<TDataItem> source)
Parameters:sourceIEnumerable<TDataItem>
C#
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
Parameters:argsNotifyCollectionChangedEventArgs
C#
protected virtual void OnCurrentChanged(EventArgs args)
Parameters:argsEventArgs
C#
protected virtual void OnCurrentChanging(CancelEventArgs args)
Parameters:argsCancelEventArgs

Sets the view in dirty state.

C#
public void SetDirty()

Events

C#
public event NotifyCollectionChangedEventHandler CollectionChanged

Implements: ICollectionView<TDataItem>.CollectionChanged

C#
public event EventHandler CurrentChanged

Implements: ICollectionView<TDataItem>.CurrentChanged

C#
public event CancelEventHandler CurrentChanging

Implements: ICollectionView<TDataItem>.CurrentChanging