CollectionEditor.SetItems Method (Object, Object[])


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Sets the specified array as the items of the collection.

Namespace:   System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

protected virtual object SetItems(
	object editValue,
	object[] value


Type: System.Object

The collection to edit.

Type: System.Object[]

An array of objects to set as the collection items.

Return Value

Type: System.Object

The newly created collection object or, otherwise, the collection indicated by the editValue parameter.

If setting requires that a new object be created, the new object is returned. Otherwise, the editValue parameter is returned.

.NET Framework
Available since 1.1
Return to top