ListBox.ObjectCollection Constructor (ListBox, ListBox.ObjectCollection)

 

Initializes a new instance of ListBox.ObjectCollection based on another ListBox.ObjectCollection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public ObjectCollection(
	ListBox owner,
	ListBox.ObjectCollection value
)

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
Return to top
Show: