DesignerRegionCollection Classe
Definição
Representa uma coleção de objetos DesignerRegion em um designer de controle.Represents a collection of DesignerRegion objects within a control designer.
public ref class DesignerRegionCollection : System::Collections::IList
public class DesignerRegionCollection : System.Collections.IList
type DesignerRegionCollection = class
interface IList
interface ICollection
interface IEnumerable
Public Class DesignerRegionCollection
Implements IList
- Herança
-
DesignerRegionCollection
- Implementações
Comentários
A ControlDesigner classe e qualquer classe derivada, usa a DesignerRegionCollection classe para conter e enumerar as regiões do designer para o controle em um host de design, como o Visual Studio 2005.The ControlDesigner class, and any derived class, uses the DesignerRegionCollection class to contain and enumerate the designer regions for the control in a design host, such as Visual Studio 2005.
Por exemplo, o ControlDesigner.GetDesignTimeHtml método pode ser usado para definir e adicionar regiões à coleção.For example, the ControlDesigner.GetDesignTimeHtml method can be used to define and add regions to the collection.
Use a Owner propriedade para acessar o objeto do designer de controle que contém a coleção de regiões do designer.Use the Owner property to access the control designer object that contains the designer region collection. Use os DesignerRegionCollection métodos e as propriedades para examinar e manter os DesignerRegion objetos que estão na coleção.Use the DesignerRegionCollection methods and properties to examine and maintain the DesignerRegion objects that are in the collection.
A coleção aumenta dinamicamente à medida que os objetos são adicionados.The collection dynamically increases as objects are added. Os índices nesta coleção são baseados em zero.Indexes in this collection are zero-based. Use a Count propriedade para determinar quantas regiões de designer estão na coleção.Use the Count property to determine how many designer regions are in the collection. Use os DesignerRegionCollection Membros para fornecer a seguinte funcionalidade:Use the DesignerRegionCollection members to provide the following functionality:
O Add método para adicionar uma única região do designer à coleção.The Add method to add a single designer region to the collection.
O Insert método para adicionar uma região de designer em um índice específico dentro da coleção.The Insert method to add a designer region at a particular index within the collection.
O Remove método para remover uma região do designer.The Remove method to remove a designer region.
O RemoveAt método para remover a região do designer em um índice específico.The RemoveAt method to remove the designer region at a particular index.
O Contains método para determinar se uma região de designer específica já está na coleção.The Contains method to determine whether a particular designer region is already in the collection.
O IndexOf método para recuperar o índice de uma região do designer dentro da coleção.The IndexOf method to retrieve the index of a designer region within the collection.
O Item[] indexador para obter ou definir a região do designer em um índice específico, usando a notação de matriz.The Item[] indexer to get or set the designer region at a particular index, using array notation.
O Clear método para remover todas as regiões do designer da coleção.The Clear method to remove all designer regions from the collection.
Construtores
| DesignerRegionCollection() |
Inicializa uma nova instância da classe DesignerRegionCollection.Initializes a new instance of the DesignerRegionCollection class. |
| DesignerRegionCollection(ControlDesigner) |
Inicializa uma nova instância da classe DesignerRegionCollection para o designer de controle especificado.Initializes a new instance of the DesignerRegionCollection class for the specified control designer. |
Propriedades
| Count |
Obtém o número de objetos DesignerRegion na coleção.Gets the number of DesignerRegion objects in the collection. |
| IsFixedSize |
Obtém um valor que indica se o objeto DesignerRegionCollection tem um tamanho fixo.Gets a value indicating whether the DesignerRegionCollection object has a fixed size. |
| IsReadOnly |
Obtém um valor que indica se o objeto DesignerRegionCollection é somente leitura.Gets a value indicating whether the DesignerRegionCollection object is read-only. |
| IsSynchronized |
Obtém um valor que indica se o acesso ao objeto DesignerRegionCollection é sincronizado (thread-safe).Gets a value indicating whether access to the DesignerRegionCollection object is synchronized (thread safe). |
| Item[Int32] |
Obtém ou define um objeto DesignerRegion no índice especificado na coleção.Gets or sets a DesignerRegion object at the specified index in the collection. |
| Owner |
Obtém o designer de controle que é proprietário da coleção de regiões de designer.Gets the control designer that owns the designer region collection. |
| SyncRoot |
Obtém um objeto que pode ser usado para sincronizar o acesso ao objeto DesignerRegionCollection.Gets an object that can be used to synchronize access to the DesignerRegionCollection object. |
Métodos
| Add(DesignerRegion) |
Adiciona o objeto DesignerRegion especificado ao final da coleção.Adds the specified DesignerRegion object to the end of the collection. |
| Clear() |
Remove todas as regiões da coleção.Removes all regions from the collection. |
| Contains(DesignerRegion) |
Obtém um valor que indica se a região especificada está contida na coleção.Gets a value indicating whether the specified region is contained within the collection. |
| CopyTo(Array, Int32) |
Copia os elementos da coleção para um objeto Array, começando em um índice Array específico.Copies the elements of the collection to an Array object, starting at a particular Array index. |
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| GetEnumerator() |
Retorna um enumerador que itera pela coleção.Returns an enumerator that iterates through the collection. |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| IndexOf(DesignerRegion) |
Retorna o índice do objeto DesignerRegion especificado na coleção.Returns the index of the specified DesignerRegion object within the collection. |
| Insert(Int32, DesignerRegion) |
Insere um objeto DesignerRegion na coleção no índice especificado.Inserts a DesignerRegion object into the collection at the specified index. |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| Remove(DesignerRegion) |
Remove o objeto DesignerRegion especificado da coleção.Removes the specified DesignerRegion object from the collection. |
| RemoveAt(Int32) |
Remove o objeto DesignerRegion no índice especificado dentro da coleção.Removes the DesignerRegion object at the specified index within the collection. |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |
Implantações explícitas de interface
| ICollection.CopyTo(Array, Int32) |
Para obter uma descrição desse membro, confira CopyTo(Array, Int32).For a description of this member, see CopyTo(Array, Int32). |
| ICollection.Count |
Para obter uma descrição desse membro, confira Count.For a description of this member, see Count. |
| ICollection.IsSynchronized |
Para obter uma descrição desse membro, confira IsSynchronized.For a description of this member, see IsSynchronized. |
| ICollection.SyncRoot |
Para obter uma descrição desse membro, confira SyncRoot.For a description of this member, see SyncRoot. |
| IEnumerable.GetEnumerator() |
Para obter uma descrição desse membro, confira GetEnumerator().For a description of this member, see GetEnumerator(). |
| IList.Add(Object) |
Para obter uma descrição desse membro, confira Add(Object).For a description of this member, see Add(Object). |
| IList.Clear() |
Para obter uma descrição desse membro, confira Clear().For a description of this member, see Clear(). |
| IList.Contains(Object) |
Para obter uma descrição desse membro, confira Contains(Object).For a description of this member, see Contains(Object). |
| IList.IndexOf(Object) |
Para obter uma descrição desse membro, confira IndexOf(Object).For a description of this member, see IndexOf(Object). |
| IList.Insert(Int32, Object) |
Para obter uma descrição desse membro, confira Insert(Int32, Object).For a description of this member, see Insert(Int32, Object). |
| IList.IsFixedSize |
Para obter uma descrição desse membro, confira IsFixedSize.For a description of this member, see IsFixedSize. |
| IList.IsReadOnly |
Para obter uma descrição desse membro, confira IsReadOnly.For a description of this member, see IsReadOnly. |
| IList.Item[Int32] |
Para obter uma descrição desse membro, confira Item[Int32].For a description of this member, see Item[Int32]. |
| IList.Remove(Object) |
Para obter uma descrição desse membro, confira Remove(Object).For a description of this member, see Remove(Object). |
| IList.RemoveAt(Int32) |
Para obter uma descrição desse membro, confira RemoveAt(Int32).For a description of this member, see RemoveAt(Int32). |
Métodos de Extensão
| Cast<TResult>(IEnumerable) |
Converte os elementos de um IEnumerable para o tipo especificado.Casts the elements of an IEnumerable to the specified type. |
| OfType<TResult>(IEnumerable) |
Filtra os elementos de um IEnumerable com base em um tipo especificado.Filters the elements of an IEnumerable based on a specified type. |
| AsParallel(IEnumerable) |
Habilita a paralelização de uma consulta.Enables parallelization of a query. |
| AsQueryable(IEnumerable) |
Converte um IEnumerable em um IQueryable.Converts an IEnumerable to an IQueryable. |