CollectionEditor Class
.NET Framework 3.0
Provides a user interface that can edit most types of collections at design time.
Namespace: System.ComponentModel.Design
Assembly: System.Design (in system.design.dll)
Assembly: System.Design (in system.design.dll)
Notes to Inheritors:
This editor can edit collections that have an Item property. The editor can determine the type of the collection from the Item property, if it exists. If the collection does not have this property, or if you want to provide collections of more than one type, you can override certain protected members of this class to customize the editor to support other types of collections.
The following code example uses an EditorAttribute to associate the CollectionEditor with a property.
<EditorAttribute(GetType(System.ComponentModel.Design.CollectionEditor), GetType(System.Drawing.Design.UITypeEditor))> _ Public Property testCollection() As ICollection Get Return Icollection End Get Set Icollection = value End Set End Property Private Icollection As ICollection
/** @attribute EditorAttribute(System.ComponentModel.Design.
CollectionEditor.class, System.Drawing.Design.UITypeEditor.class)
*/
/** @property
*/
public ICollection get_TestCollection()
{
return iCollection;
} //get_TestCollection
/** @property
*/
public void set_TestCollection(ICollection value)
{
iCollection = value;
} //set_TestCollection
private ICollection iCollection;
System.Object
System.Drawing.Design.UITypeEditor
System.ComponentModel.Design.CollectionEditor
Derived Classes
System.Drawing.Design.UITypeEditor
System.ComponentModel.Design.CollectionEditor
Derived Classes
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.Community Additions
ADD
Show: