Поделиться через


PagedCollectionView.CanRemove Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a value that indicates whether an item can be removed from the collection.

Namespace:  System.Windows.Data
Assembly:  System.Windows.Data (in System.Windows.Data.dll)

Syntax

'Declaration
Public ReadOnly Property CanRemove As Boolean
public bool CanRemove { get; }

Property Value

Type: System.Boolean
true if an item can be removed from the collection; otherwise, false.

Implements

IEditableCollectionView.CanRemove

Remarks

A PagedCollectionView can remove an item if IsEditingItem is false, IsAddingNew is false, and the underlying collection permits removal of the item.

Use this property to test whether an item can be removed before you call the Remove or RemoveAt methods.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.