TemplateGroupCollection.Item[Int32] 属性

定义

获取或设置集合中指定索引处的 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

要在集合中获取或设置的 TemplateGroup 的从零开始的索引。

属性值

TemplateGroup

集合中位于 index 处的 TemplateGroup

例外

value 小于零。

  • 或 - value 大于 Count 属性。

注解

Item[]使用索引器检索集合中指定的组index,或在集合中指定的位置设置组index。 可以使用数组表示法为集合中的元素编制索引。 例如,可以使用 Microsoft VisualBasic 或 TemplateGroups[i] C# 表示法TemplateGroups(i)为索引处的元素编制索引i

如果对组对象有引用,并且需要集合中的对象的索引,请使用 IndexOf 该方法。

适用于

另请参阅