StyleCollection Classe
Definição
public ref class StyleCollection : System::Web::UI::StateManagedCollection
public class StyleCollection : System.Web.UI.StateManagedCollection
type StyleCollection = class
inherit StateManagedCollection
Public Class StyleCollection
Inherits StateManagedCollection
- Herança
Comentários
Use a StyleCollection classe para armazenar e gerenciar Style objetos para um controle.Use the StyleCollection class to store and manage Style objects for a control. Os desenvolvedores de controle podem usar essa classe para conter um conjunto de estilos que se aplicam a diferentes partes do controle.Control developers can use this class to contain a set of styles that apply to different portions of the control.
A coleção aumenta dinamicamente de tamanho à medida que os objetos são adicionados.The collection dynamically increases in size 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 quantos objetos estão na coleção.Use the Count property to determine how many objects are in the collection.
Além disso, use os StyleCollection métodos e as propriedades para fornecer a seguinte funcionalidade:Additionally, use the StyleCollection methods and properties to provide the following functionality:
O Add método para adicionar um único estilo à coleção.The Add method to add a single style to the collection.
O Insert método para adicionar um estilo em um índice específico dentro da coleção.The Insert method to add a style at a particular index within the collection.
O Remove método para remover um estilo da coleção.The Remove method to remove a style from the collection.
O RemoveAt método para remover o estilo localizado em um índice específico.The RemoveAt method to remove the style located at a particular index.
O Contains método para determinar se um determinado estilo já está na coleção.The Contains method to determine whether a particular style is already in the collection.
O IndexOf método para recuperar o índice de um estilo dentro da coleção.The IndexOf method to retrieve the index of a style within the collection.
O Clear método para remover todos os estilos da coleção.The Clear method to remove all the styles from the collection.
Propriedades
| Count |
Obtém o número de elementos contidos na coleção StateManagedCollection.Gets the number of elements contained in the StateManagedCollection collection. (Herdado de StateManagedCollection) |
| Item[Int32] |
Obtém o objeto Style no local do índice especificado no objeto StyleCollection.Gets the Style object at the specified index location in the StyleCollection object. |
Métodos
| Add(Style) |
Acrescenta um objeto Style especificado ao final do objeto StyleCollection.Appends a specified Style object to the end of the StyleCollection object. |
| Clear() |
Remove todos os itens da coleção StateManagedCollection.Removes all items from the StateManagedCollection collection. (Herdado de StateManagedCollection) |
| Contains(Style) |
Determina se o estilo especificado está contido na coleção.Determines whether the specified style is contained within the collection. |
| CopyTo(Array, Int32) |
Copia os elementos da coleção StateManagedCollection para uma matriz, começando em um índice de matriz específico.Copies the elements of the StateManagedCollection collection to an array, starting at a particular array index. (Herdado de StateManagedCollection) |
| CopyTo(Style[], Int32) |
Copia os elementos do StyleCollection para uma matriz Style unidimensional, iniciando no índice especificado da matriz de destino.Copies the elements of the StyleCollection to a one-dimensional Style array, starting at the specified index of the target array. |
| CreateKnownType(Int32) |
Cria uma instância da classe Style, com base na coleção de um único elemento único retornada pelo método GetKnownTypes().Creates an instance of the Style class, based on the single element collection returned by the GetKnownTypes() method. |
| 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 iterador que itera por meio da coleção StateManagedCollection.Returns an iterator that iterates through the StateManagedCollection collection. (Herdado de StateManagedCollection) |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetKnownTypes() |
Obtém uma matriz dos tipos IStateManager que o StyleCollection pode conter.Gets an array of the IStateManager types that the StyleCollection can contain. |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| IndexOf(Style) |
Retorna o índice do objeto Style especificado na coleção.Returns the index of the specified Style object within the collection. |
| Insert(Int32, Style) |
Insere um objeto Style especificado no StyleCollection no local do índice especificado.Inserts a specified Style object into the StyleCollection at the specified index location. |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| OnClear() |
Quando substituído em uma classe derivada, executa o trabalho adicional antes do método Clear() remover todos os itens da coleção.When overridden in a derived class, performs additional work before the Clear() method removes all items from the collection. (Herdado de StateManagedCollection) |
| OnClearComplete() |
Quando substituído em uma classe derivada, executa o trabalho adicional após o método Clear() terminar a remoção de todos os itens da coleção.When overridden in a derived class, performs additional work after the Clear() method finishes removing all items from the collection. (Herdado de StateManagedCollection) |
| OnInsert(Int32, Object) |
Quando substituído em uma classe derivada, executa o trabalho adicional antes do método IList.Insert(Int32, Object) ou IList.Add(Object) adicionar um item à coleção.When overridden in a derived class, performs additional work before the IList.Insert(Int32, Object) or IList.Add(Object) method adds an item to the collection. (Herdado de StateManagedCollection) |
| OnInsertComplete(Int32, Object) |
Quando substituído em uma classe derivada, executa o trabalho adicional após o método IList.Insert(Int32, Object) ou IList.Add(Object) adicionar um item à coleção.When overridden in a derived class, performs additional work after the IList.Insert(Int32, Object) or IList.Add(Object) method adds an item to the collection. (Herdado de StateManagedCollection) |
| OnRemove(Int32, Object) |
Quando substituído em uma classe derivada, executa o trabalho adicional antes do método IList.Remove(Object) ou IList.RemoveAt(Int32) remover o item especificado da coleção.When overridden in a derived class, performs additional work before the IList.Remove(Object) or IList.RemoveAt(Int32) method removes the specified item from the collection. (Herdado de StateManagedCollection) |
| OnRemoveComplete(Int32, Object) |
Quando substituído em uma classe derivada, executa o trabalho adicional após o método IList.Remove(Object) ou IList.RemoveAt(Int32) remover o item especificado da coleção.When overridden in a derived class, performs additional work after the IList.Remove(Object) or IList.RemoveAt(Int32) method removes the specified item from the collection. (Herdado de StateManagedCollection) |
| OnValidate(Object) |
Quando substituído em uma classe derivada, valida um elemento da coleção StateManagedCollection.When overridden in a derived class, validates an element of the StateManagedCollection collection. (Herdado de StateManagedCollection) |
| Remove(Style) |
Remove o objeto Style especificado do objeto StyleCollection.Removes the specified Style object from the StyleCollection object. |
| RemoveAt(Int32) |
Remove o objeto Style no local do índice especificado do objeto StyleCollection.Removes the Style object at the specified index location from the StyleCollection object. |
| SetDirty() |
Força a coleção StateManagedCollection inteira a ser serializada no estado de exibição.Forces the entire StateManagedCollection collection to be serialized into view state. (Herdado de StateManagedCollection) |
| SetDirtyObject(Object) |
Instrui o objeto Style de entrada contido na coleção para registrar todo seu estado para o estado de exibição, em vez de gravar somente informações de alteração.Instructs the input Style object contained in the collection to record its entire state to view state, rather than recording only change information. |
| 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.Count |
Obtém o número de elementos contidos na coleção StateManagedCollection.Gets the number of elements contained in the StateManagedCollection collection. (Herdado de StateManagedCollection) |
| ICollection.IsSynchronized |
Obtém um valor que indica se a coleção StateManagedCollection é sincronizada (thread-safe).Gets a value indicating whether the StateManagedCollection collection is synchronized (thread safe). Este método retorna |
| ICollection.SyncRoot |
Obtém um objeto que pode ser usado para sincronizar o acesso à coleção StateManagedCollection.Gets an object that can be used to synchronize access to the StateManagedCollection collection. Este método retorna |
| IEnumerable.GetEnumerator() |
Retorna um iterador que itera por meio da coleção StateManagedCollection.Returns an iterator that iterates through the StateManagedCollection collection. (Herdado de StateManagedCollection) |
| IList.Add(Object) |
Adiciona um item à coleção StateManagedCollection.Adds an item to the StateManagedCollection collection. (Herdado de StateManagedCollection) |
| IList.Clear() |
Remove todos os itens da coleção StateManagedCollection.Removes all items from the StateManagedCollection collection. (Herdado de StateManagedCollection) |
| IList.Contains(Object) |
Determina se a coleção StateManagedCollection contém um valor específico.Determines whether the StateManagedCollection collection contains a specific value. (Herdado de StateManagedCollection) |
| IList.IndexOf(Object) |
Determina o índice de um item especificado na coleção StateManagedCollection.Determines the index of a specified item in the StateManagedCollection collection. (Herdado de StateManagedCollection) |
| IList.Insert(Int32, Object) |
Insere um item na coleção StateManagedCollection no índice especificado.Inserts an item into the StateManagedCollection collection at the specified index. (Herdado de StateManagedCollection) |
| IList.IsFixedSize |
Obtém um valor que indica se a coleção StateManagedCollection tem um tamanho fixo.Gets a value indicating whether the StateManagedCollection collection has a fixed size. Este método retorna |
| IList.IsReadOnly |
Obtém um valor que indica se a coleção StateManagedCollection é somente leitura.Gets a value indicating whether the StateManagedCollection collection is read-only. (Herdado de StateManagedCollection) |
| IList.Item[Int32] |
Obtém o elemento IStateManager no índice especificado.Gets the IStateManager element at the specified index. (Herdado de StateManagedCollection) |
| IList.Remove(Object) |
Remove a primeira ocorrência do objeto especificado da coleção StateManagedCollection.Removes the first occurrence of the specified object from the StateManagedCollection collection. (Herdado de StateManagedCollection) |
| IList.RemoveAt(Int32) |
Remove o elemento IStateManager no índice especificado.Removes the IStateManager element at the specified index. (Herdado de StateManagedCollection) |
| IStateManager.IsTrackingViewState |
Obtém um valor que indica se a coleção StateManagedCollection está salvando alterações no estado de exibição.Gets a value indicating whether the StateManagedCollection collection is saving changes to its view state. (Herdado de StateManagedCollection) |
| IStateManager.LoadViewState(Object) |
Restaura o estado de exibição salvo anteriormente da coleção StateManagedCollection e o itens IStateManager que ele contém.Restores the previously saved view state of the StateManagedCollection collection and the IStateManager items it contains. (Herdado de StateManagedCollection) |
| IStateManager.SaveViewState() |
Salva as alterações na coleção StateManagedCollection e cada objeto IStateManager que ela contém, desde o momento em que a página foi postada novamente no servidor.Saves the changes to the StateManagedCollection collection and each IStateManager object it contains since the time the page was posted back to the server. (Herdado de StateManagedCollection) |
| IStateManager.TrackViewState() |
Faz com que a coleção StateManagedCollection e os objetos IStateManager que ela contém controlem as alterações realizadas no estado de exibição, para que elas possam ser mantidas em todas as solicitações para a mesma página.Causes the StateManagedCollection collection and each of the IStateManager objects it contains to track changes to their view state so they can be persisted across requests for the same page. (Herdado de StateManagedCollection) |
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. |