Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
Tradução
Original
Este tópico ainda não foi avaliado como - Avalie este tópico

ComboBox.ObjectCollection Classe

Represents the collection of items in a ComboBox.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (em System.Windows.Forms. dll)
[ListBindableAttribute(false)]
public class ObjectCollection : IList, 
	ICollection, IEnumerable

The System.Windows.Forms.ComboBox.ObjectCollection class encapsulates the items in the ComboBox.A coleção objeto de uma caixa de combinação pode ser usada para gerenciar vários tipos de objetos, incluindo as seqüências de caracteres, imagens, e Personalizar objetos empresa.

Você pode adicionar itens à coleção de diversas maneiras.The Add method adds one object to the collection.To add a number of objects to the collection, it is best to create an array of items and assign with the AddRange method.To insert an object at a specific location within the collection, you can use the Insert method.To remove items at a known index in the collection you can use either the Remove method or the RemoveAt method.The Clear method removes all the items from the collection.

In addition to methods and properties for adding and removing items, the System.Windows.Forms.ComboBox.ObjectCollection also provides methods to find items within the collection.The Contains method enables you to determine if an object is a member of the collection.Once you know that the item is located within the collection, you can use the IndexOf method to determine where the item is located within the collection.

System.Object
  System.Windows.Forms.ComboBox.ObjectCollection
Quaisquer membros públicos estático (compartilhados na Visual Basic) desse tipo são Thread seguro. Não há garantia de que qualquer membro de instância seja isento de segmentos.
Isso foi útil para você?
(1500 caracteres restantes)

Contribuições da comunidade

ADICIONAR
© 2013 Microsoft. Todos os direitos reservados.