Skip to main content

Contains Method

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.

Definition​

Namespace: Avalonia.Collections
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.dll)

public bool Contains(
Object item
)

Parameters​

  Object
The item we are checking to see whether it is within the collection

Return Value​

Boolean
Boolean value of whether or not the collection contains the item

Implements​

IDataGridCollectionView.Contains(Object)
IList.Contains(Object)

See Also​

Reference​

DataGridCollectionView Class
Avalonia.Collections Namespace