ListItemsCollectionEditor Class
Provides a user interface for editing the items collection of any of the controls that inherits from the ListControl class.
For a list of all members of this type, see ListItemsCollectionEditor Members.
System.Object
System.Drawing.Design.UITypeEditor
System.ComponentModel.Design.CollectionEditor
System.Web.UI.Design.WebControls.ListItemsCollectionEditor
[Visual Basic] Public Class ListItemsCollectionEditor Inherits CollectionEditor [C#] public class ListItemsCollectionEditor : CollectionEditor [C++] public __gc class ListItemsCollectionEditor : public CollectionEditor [JScript] public class ListItemsCollectionEditor extends CollectionEditor
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Example
[Visual Basic] The following code example uses the EditorAttribute to associate the ListItemsCollectionEditor class and the UITypeEditor class (the collection editor's base class) with a custom ListItems property.
[Visual Basic]
Private items As ListItemCollection
' Use the ListItemsCollectionEditor to allow
' property editing on a design surface.
<EditorAttribute( _
GetType(System.Web.UI.Design.WebControls.ListItemsCollectionEditor), _
GetType(UITypeEditor))> _
Public ReadOnly Property ListItems() As ListItemCollection
Get
Return items
End Get
End Property
[C#, C++, JScript] No example is available for C#, C++, or JScript. To view a Visual Basic example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Namespace: System.Web.UI.Design.WebControls
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
Assembly: System.Design (in System.Design.dll)
See Also
ListItemsCollectionEditor Members | System.Web.UI.Design.WebControls Namespace