ObservableBindingListTCancelNew Method

Discards a pending new item added by the AddNew method.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public virtual void CancelNew(
	int itemIndex
)

Parameters

itemIndex  Int32
The index of the item that was previously added to the collection.

Implements

ICancelAddNewCancelNew(Int32)

Remarks

If the underlying list implements ICancelAddNew, then the underlying implementation is called; otherwise, discards the last pending new item added by the AddNew method.

See Also