CollectionEditorSetItems Method
 

Sets the specified array as the items of the collection.

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

Syntax
protected virtual object SetItems(
	object editValue,
	object[] value
)
protected:
virtual Object^ SetItems(
	Object^ editValue,
	array<Object^>^ value
)
abstract SetItems : 
        editValue:Object *
        value:Object[] -> Object
override SetItems : 
        editValue:Object *
        value:Object[] -> Object
Protected Overridable Function SetItems (
	editValue As Object,
	value As Object()
) As Object

Parameters

editValue
Type:

The collection to edit.

value
Type:

An array of objects to set as the collection items.

Return Value

Type:

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

Remarks

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

Version Information
.NET Framework
Available since 1.1
Return to top