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.
[Visual Basic] Overridable Protected Function CanRemoveInstance( _ ByVal value As Object _ ) As Boolean [C#] protected virtual bool CanRemoveInstance( object value ); [C++] protected: virtual bool CanRemoveInstance( Object* value ); [JScript] protected function CanRemoveInstance( value : Object ) : Boolean;
This should return true if it is ok to remove this value from the collection, or false otherwise. The default implementation always returns true.
CollectionEditor Class | CollectionEditor Members | System.ComponentModel.Design Namespace