IEditableCollectionView.RemoveAt(Int32) 方法

定義

從集合中移除位於指定之位置的項目。

C#
public void RemoveAt (int index);

參數

index
Int32

要移除之項目的位置。

例外狀況

index 小於 0 或大於集合檢視中的項目數。

備註

index 相對於集合檢視,而不是集合。 例如,如果集合有10個專案,而且檢視有 Filter ,因此會出現7個專案,則的有效值為 index 0到6。

適用於

產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9