SortDescriptionCollection.SetItem(Int32, SortDescription) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取代位於指定索引處的專案。
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> 。