SortDescriptionCollection.InsertItem(Int32, SortDescription) 方法

定義

將項目插入至索引中的指定索引處。

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

參數

index
Int32

插入 item 之從零開始的索引。

item
SortDescription

要插入的物件。

備註

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

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

適用於