TemplateGroupCollection.Insert(Int32, TemplateGroup) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 TemplateGroup 插入位於指定索引的集合。
public:
void Insert(int index, System::Web::UI::Design::TemplateGroup ^ group);
public void Insert (int index, System.Web.UI.Design.TemplateGroup group);
member this.Insert : int * System.Web.UI.Design.TemplateGroup -> unit
Public Sub Insert (index As Integer, group As TemplateGroup)
參數
- index
- Int32
要插入 group
集合中之以零起始的索引。
- group
- TemplateGroup
要插入至集合的 TemplateGroup。
例外狀況
備註
方法 Insert 會將 TemplateGroup 物件加入至集合中的特定索引位置。 若要將單 TemplateGroup 一新增至集合結尾,請使用 Add 方法。 若要將多個群組新增至集合,請使用 AddRange 方法。
注意
當您將專案插入集合中時,集合中後續專案的索引會變更。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應