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, 
	array<Object^>^ value
)
protected Object SetItems (
	Object editValue, 
	Object[] value
)
protected function SetItems (
	editValue : Object, 
	value : Object[]
) : Object
Not applicable.

Parameters

editValue

The collection to edit.

value

An array of objects to set as the collection items.

Return Value

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: