Show / Hide Table of Contents

Class ObservableCollectionExtensions

Extensions for observalbe collections

Inheritance
object
ObservableCollectionExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
public static class ObservableCollectionExtensions

Methods

FindIndex<T>(ObservableCollection<T>, int, int, Predicate<T>)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the Collection that starts at the specified index and contains the specified number of elements.

Declaration
public static int FindIndex<T>(this ObservableCollection<T> ts, int startIndex, int count, Predicate<T> match)
Parameters
Type Name Description
ObservableCollection<T> ts
int startIndex
int count
Predicate<T> match
Returns
Type Description
int
Type Parameters
Name Description
T

FindIndex<T>(ObservableCollection<T>, int, Predicate<T>)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the Collection that extends from the specified index to the last element.

Declaration
public static int FindIndex<T>(this ObservableCollection<T> ts, int startIndex, Predicate<T> match)
Parameters
Type Name Description
ObservableCollection<T> ts
int startIndex
Predicate<T> match
Returns
Type Description
int
Type Parameters
Name Description
T

FindIndex<T>(ObservableCollection<T>, Predicate<T>)

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire collection

Declaration
public static int FindIndex<T>(this ObservableCollection<T> ts, Predicate<T> match)
Parameters
Type Name Description
ObservableCollection<T> ts
Predicate<T> match
Returns
Type Description
int
Type Parameters
Name Description
T
In this article
Back to top Generated by DocFX