NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

CollectionEditor Members

Public:

Constructor

CollectionEditor Constructor Creates a new collection editor.

Methods

EditValue Overloaded. [To be supplied.]
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
GetEditStyle (inherited from UITypeEditor) Overloaded. [To be supplied.]
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetPaintValueSupported (inherited from UITypeEditor) Overloaded. [To be supplied.]
GetType (inherited from Object) Gets the Type of the Object.
PaintValue (inherited from UITypeEditor) Overloaded. [To be supplied.]
ToString (inherited from Object) Returns a String that represents the current Object.

Protected:

Properties

CollectionItemType The data type of each item in the collection.
CollectionType Retrieves the data type of the collection we are editing.
Context The type descriptor context that is currently in use, or null if no context is available.
NewItemTypes The available item types that can be created for this collection. This defaults to a single type of CollectionItemType. If more than one type is returned the collection editor will provide a way to choose which item to create.

Methods

CanRemoveInstance This will be called when the user tries to remove an instance from the collection that is an original member of the collection. It will not be called when removing instances that were added in this editing session since they are not yet part of the collection.
CreateCollectionForm Creates a new form to show the current collection. You may inherit from CollectionForm to provide your own form.
CreateCollectionItemType Retrieves the data type this collection contains. The default implementation looks inside of the collection for the Item property and returns the returning datatype of the item. Do not call this method directly. Instead, use the CollectionItemType property. Use this method to override the default implementation.
CreateInstance Creates a new instance of the given collection item type.
CreateNewItemTypes Retrieves the data types this collection editor can create. The default implementation looks inside of the collection for the Item property and returns the returning datatype of the item. Do not call this method directly. Instead, use the NewItemTypes property. Use this method to override the default implementation.
DestroyInstance Destroys the given instance of the object.
Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
GetItems Converts the given collection into an array of objects. This is used by the editing dialog to manipulate the individual collection.
GetServiceObject Retrieves the requested service, if it is available.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
SetItems Sets the given collection to have the given array of items. If setting requires that a new object be created, the new object should be returned. Otherwise, editValue should be returned.

See Also

CollectionEditor Class | System.ComponentModel.Design Namespace