Table of Contents

Class CollectionEditor

Namespace
Bonsai.Resources.Design
Assembly
Bonsai.System.Design.dll

Provides a user interface editor that displays a dialog for editing a collection of objects.

public class CollectionEditor : UITypeEditor
Inheritance
CollectionEditor
Derived
Inherited Members

Constructors

CollectionEditor(Type)

Initializes a new instance of the CollectionEditor class using the specified collection type.

Properties

CollectionItemType

Gets the type of the items in the collection.

CollectionType

Gets the type of the collection.

NewItemTypes

Gets the available types of items that can be created for this collection.

Methods

CreateCollectionItemType()

Gets the type of the items in this collection.

CreateEditorDialog()

Creates a new dialog to display and edit the current collection.

CreateNewItemTypes()

Gets the available types of items that can be created for this collection.

EditValue(ITypeDescriptorContext, IServiceProvider, object)

Edits the specified object's value using the editor style indicated by the GetEditStyle() method.

GetDisplayText(object)

Retrieves the display text for the specified collection item.

GetEditStyle(ITypeDescriptorContext)

Gets the editor style used by the EditValue(IServiceProvider, object) method.

SetItems(object, IEnumerable)

Sets the specified sequence as the items of the collection.