DataGridCollectionView.

Contains(object) Method

Summary

Return true if the item belongs to this view. No assumptions are made about the item. This method will behave similarly to IList.Contains(). If the caller knows that the item belongs to the underlying collection, it is more efficient to call PassesFilter.
Namespace
Avalonia.Collections
Containing Type
DataGridCollectionView

Syntax

public bool Contains(object item)

Parameters

Name Type Description
item object The item we are checking to see whether it is within the collection

Return Value

Type Description
bool Boolean value of whether or not the collection contains the item