ListBox::ObjectCollection Constructor (ListBox^, ListBox::ObjectCollection^)
.NET Framework (current version)
Initializes a new instance of ListBox::ObjectCollection based on another ListBox::ObjectCollection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- owner
-
Type:
System.Windows.Forms::ListBox^
The ListBox that owns the collection.
- value
-
Type:
System.Windows.Forms::ListBox::ObjectCollection^
A ListBox::ObjectCollection from which the contents are copied to this collection.
You cannot create an instance of this class without associating it with a ListBox control. This version of the constructor enables you to use the items specified in an existing instance of the ListBox::ObjectCollection class to add items to the collection when it is created. You can use this constructor to use the items specified in another ListBox control with this collection.
.NET Framework
Available since 1.1
Available since 1.1
Show: