ListViewItem.ListViewSubItemCollection.IList.Insert(Int32, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將子項目插入位於指定索引處的集合中。
virtual void System.Collections.IList.Insert(int index, System::Object ^ item) = System::Collections::IList::Insert;
void IList.Insert (int index, object item);
void IList.Insert (int index, object? item);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, item As Object) Implements IList.Insert
參數
- index
- Int32
插入項目所在的索引位置 (以零為起始)。
- item
- Object
物件,表示要插入集合中的子項目。
實作
例外狀況
索引參數小於 0,或者大於或等於 ListViewItem.ListViewSubItemCollection 的 Count 屬性值。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應