TemplateGroupCollection.Item[Int32] Propriedade

Definição

Obtém ou define um objeto TemplateGroup no índice especificado na coleção.Gets or sets a TemplateGroup object at the specified index in the collection.

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

Parâmetros

index
Int32

O índice baseado em zero da TemplateGroup a ser obtida ou definida na coleção.The zero-based index of the TemplateGroup to get or set in the collection.

Valor da propriedade

TemplateGroup

O TemplateGroup no index na coleção.The TemplateGroup at index in the collection.

Exceções

value é menor que zero.value is less than zero.

- ou --or- value é maior que a propriedade Count.value is greater than the Count property.

Comentários

Use o Item[] indexador para recuperar o grupo em um especificado index dentro da coleção ou para definir o grupo em um especificado index dentro da coleção.Use the Item[] indexer to retrieve the group at a specified index within the collection or to set the group at a specified index within the collection. Você pode indexar elementos na coleção usando a notação de matriz.You can index elements in the collection by using array notation. Por exemplo, você pode indexar um elemento em índice i com a notação TemplateGroups(i) para Microsoft VisualBasic ou TemplateGroups[i] para C#.For example, you can index an element at index i with the notation TemplateGroups(i) for Microsoft VisualBasic or TemplateGroups[i] for C#.

Quando você tiver uma referência ao objeto de grupo e precisar do índice do objeto na coleção, use o IndexOf método.When you have a reference to the group object and need the index of the object in the collection, use the IndexOf method.

Aplica-se a