TableCellCollection.Insert(Int32, TableCell) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在集合中的指定索引位置插入指定的專案。
public:
virtual void Insert(int index, System::Windows::Documents::TableCell ^ item);
public void Insert(int index, System.Windows.Documents.TableCell item);
abstract member Insert : int * System.Windows.Documents.TableCell -> unit
override this.Insert : int * System.Windows.Documents.TableCell -> unit
Public Sub Insert (index As Integer, item As TableCell)
參數
- index
- Int32
一個以零為基礎的索引,指定在集合中插入 item的位置。
- item
- TableCell
一個要插入收藏的物品。
實作
例外狀況
當 index 小於 0 時,該加薪。
當 為無效時 item ,會被提高。
備註
若 Count 此集合的 相 Capacity 等,則在插入新項目前,收集容量會自動增加。 設 index 為 的 Count 值,以便新增一個集合項加入集合。
現有藏書項目的索引可能會調整以配合新加入的藏品項目。