Raises the NewItem event when a new item is created in the collection by calling InsertNewItem method to allow the event handlers to create their own item type. If the event handlers do not set up a new item (using the Item property setter of the event arguments) creates a new item by calling CreateNewItem method.
Namespace:
DlhSoft.Windows.Data
Assembly:
DlhSoft.Data.Core (in DlhSoft.Data.Core.dll)
Syntax
C# |
---|
protected internal virtual Object OnNewItem( out bool cancel, params Object[] parameters ) |
Visual Basic (Declaration) |
---|
Protected Friend Overridable Function OnNewItem ( _ <OutAttribute> ByRef cancel As Boolean, _ ParamArray parameters As Object() _ ) As Object |
Parameters
- cancel
- Type:
System..::.Boolean
%
Indicates whether the creation of the new item is cancelled.
- parameters
- Type: array<
System..::.Object
>[]()[]
List of parameters passed from InsertNewItem method used for actually creating the new item. Inheriters can customize this list as their own item type requires.