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>

適用於