C# Class ZForge.Controls.ExplorerBar.Expando.ItemCollectionEditor

A custom CollectionEditor for editing ItemCollections
Inheritance: System.ComponentModel.Design.CollectionEditor
Datei anzeigen Open project: zhuangyy/Motion

Public Methods

Method Description
EditValue ( ITypeDescriptorContext context, IServiceProvider isp, object value ) : object

Edits the value of the specified object using the specified service provider and context

ItemCollectionEditor ( Type type ) : System

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

Protected Methods

Method Description
CreateInstance ( Type itemType ) : object

Creates a new instance of the specified collection item type

CreateNewItemTypes ( ) : System.Type[]

Gets the data types that this collection editor can contain

Method Details

CreateInstance() protected method

Creates a new instance of the specified collection item type
protected CreateInstance ( Type itemType ) : object
itemType System.Type The type of item to create
return object

CreateNewItemTypes() protected method

Gets the data types that this collection editor can contain
protected CreateNewItemTypes ( ) : System.Type[]
return System.Type[]

EditValue() public method

Edits the value of the specified object using the specified service provider and context
public EditValue ( ITypeDescriptorContext context, IServiceProvider isp, object value ) : object
context ITypeDescriptorContext An ITypeDescriptorContext that can be /// used to gain additional context information
isp IServiceProvider A service provider object through which /// editing services can be obtained
value object The object to edit the value of
return object

ItemCollectionEditor() public method

Initializes a new instance of the CollectionEditor class using the specified collection type
public ItemCollectionEditor ( Type type ) : System
type System.Type
return System