ListBox.ObjectCollection Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de ListBox.ObjectCollection.
Surcharges
| Nom | Description |
|---|---|
| ListBox.ObjectCollection(ListBox) |
Initialise une nouvelle instance de ListBox.ObjectCollection. |
| ListBox.ObjectCollection(ListBox, Object[]) |
Initialise une nouvelle instance de ListBox.ObjectCollection conteneur d’un tableau d’objets. |
| ListBox.ObjectCollection(ListBox, ListBox+ObjectCollection) |
Initialise une nouvelle instance basée ListBox.ObjectCollection sur un autre ListBox.ObjectCollection. |
ListBox.ObjectCollection(ListBox)
- Source:
- ListBox.ObjectCollection.cs
- Source:
- ListBox.ObjectCollection.cs
- Source:
- ListBox.ObjectCollection.cs
- Source:
- ListBox.ObjectCollection.cs
- Source:
- ListBox.ObjectCollection.cs
Initialise une nouvelle instance de ListBox.ObjectCollection.
public:
ObjectCollection(System::Windows::Forms::ListBox ^ owner);
public ObjectCollection(System.Windows.Forms.ListBox owner);
new System.Windows.Forms.ListBox.ObjectCollection : System.Windows.Forms.ListBox -> System.Windows.Forms.ListBox.ObjectCollection
Public Sub New (owner As ListBox)
Paramètres
Exceptions
.NET 5 et versions ultérieures : owner est null.
Remarques
Vous ne pouvez pas créer une instance de cette classe sans l’associer à un ListBox contrôle.
S’applique à
ListBox.ObjectCollection(ListBox, Object[])
- Source:
- ListBox.ObjectCollection.cs
- Source:
- ListBox.ObjectCollection.cs
- Source:
- ListBox.ObjectCollection.cs
- Source:
- ListBox.ObjectCollection.cs
- Source:
- ListBox.ObjectCollection.cs
Initialise une nouvelle instance de ListBox.ObjectCollection conteneur d’un tableau d’objets.
public:
ObjectCollection(System::Windows::Forms::ListBox ^ owner, cli::array <System::Object ^> ^ value);
public ObjectCollection(System.Windows.Forms.ListBox owner, object[] value);
new System.Windows.Forms.ListBox.ObjectCollection : System.Windows.Forms.ListBox * obj[] -> System.Windows.Forms.ListBox.ObjectCollection
Public Sub New (owner As ListBox, value As Object())
Paramètres
- value
- Object[]
Tableau d’objets à ajouter à la collection.
Exceptions
.NET 5 et versions ultérieures : owner ou value est null.
Remarques
Vous ne pouvez pas créer une instance de cette classe sans l’associer à un ListBox contrôle.
S’applique à
ListBox.ObjectCollection(ListBox, ListBox+ObjectCollection)
- Source:
- ListBox.ObjectCollection.cs
- Source:
- ListBox.ObjectCollection.cs
- Source:
- ListBox.ObjectCollection.cs
- Source:
- ListBox.ObjectCollection.cs
- Source:
- ListBox.ObjectCollection.cs
Initialise une nouvelle instance basée ListBox.ObjectCollection sur un autre ListBox.ObjectCollection.
public:
ObjectCollection(System::Windows::Forms::ListBox ^ owner, System::Windows::Forms::ListBox::ObjectCollection ^ value);
public ObjectCollection(System.Windows.Forms.ListBox owner, System.Windows.Forms.ListBox.ObjectCollection value);
new System.Windows.Forms.ListBox.ObjectCollection : System.Windows.Forms.ListBox * System.Windows.Forms.ListBox.ObjectCollection -> System.Windows.Forms.ListBox.ObjectCollection
Public Sub New (owner As ListBox, value As ListBox.ObjectCollection)
Paramètres
- value
- ListBox.ObjectCollection
À ListBox.ObjectCollection partir duquel le contenu est copié dans cette collection.
Exceptions
.NET 5 et versions ultérieures : owner ou value est null.
Remarques
Vous ne pouvez pas créer une instance de cette classe sans l’associer à un ListBox contrôle. Cette version du constructeur vous permet d’utiliser les éléments spécifiés dans une instance existante de la ListBox.ObjectCollection classe pour ajouter des éléments à la collection lors de sa création. Vous pouvez utiliser ce constructeur pour utiliser les éléments spécifiés dans un autre ListBox contrôle avec cette collection.