CapeUnitBaseOnPortCollectionAddingNew Method

Occurs before an item is added to the list.

Definition

Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
protected void OnPortCollectionAddingNew(
	AddingNewEventArgs args
)

Parameters

args  AddingNewEventArgs
A System.ComponentModel.AddingNewEventArgs that contains information about the event.

Remarks

The AddingNew event occurs before a new object is added to the collection represented by the Items property. This event is raised after the AddNew method is called, but before the new item is created and added to the internal list. By handling this event, the programmer can provide custom item creation and insertion behavior without being forced to derive from the BindingList>T< class.

See Also