TemplateGroupCollection.Item[Int32] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 TemplateGroup 物件在集合中指定的索引位置。
public:
property System::Web::UI::Design::TemplateGroup ^ default[int] { System::Web::UI::Design::TemplateGroup ^ get(int index); void set(int index, System::Web::UI::Design::TemplateGroup ^ value); };
public System.Web.UI.Design.TemplateGroup this[int index] { get; set; }
member this.Item(int) : System.Web.UI.Design.TemplateGroup with get, set
Default Public Property Item(index As Integer) As TemplateGroup
參數
- index
- Int32
集合中 to get 或 set 的 TemplateGroup 零基索引。
屬性值
TemplateGroup收藏中的 atindex。
例外狀況
備註
使用 Item[] 索引器在集合中指定的 index 位置取得群組,或將群組設定在集合內指定的 index 位置。 你可以用陣列符號來索引集合中的元素。 例如,你可以用 i 表示 Microsoft VisualBasic 的元素索引為 TemplateGroups(i),C# 則用 TemplateGroups[i]。
當你有群組物件的參考,需要該物件在集合中的索引時,使用這個 IndexOf 方法。