Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SetItems Method

CollectionEditor.SetItems Method

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
)

Parameters

editValue
Type: System.Object

The collection to edit.

value
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft