SortDescriptionCollection.SetItem(Int32, SortDescription) 方法

定義

取代指定之索引處的項目。

protected:
 override void SetItem(int index, System::ComponentModel::SortDescription item);
protected override void SetItem (int index, System.ComponentModel.SortDescription item);
override this.SetItem : int * System.ComponentModel.SortDescription -> unit
Protected Overrides Sub SetItem (index As Integer, item As SortDescription)

參數

index
Int32

要取代的項目之以零起始的索引。

item
SortDescription

指定之索引處的項目新值。

備註

當集合中設定專案時,基類會呼叫這個方法。 這個實作 CollectionChanged 會引發 事件。

如需詳細資訊,請參閱 SetItem 基類的 Collection<T> 方法。

適用於