ElementListCompartment.HandleNewListItemInsertion Method

Definition

Creates a new list item based on the currently selected item. If none is selected, then uses the default type. Then adds the new item into the Items list and automatically sets it to start editing that item.

public:
 virtual void HandleNewListItemInsertion(Microsoft::VisualStudio::Modeling::Diagrams::DiagramClientView ^ view, Microsoft::VisualStudio::Modeling::DomainClassInfo ^ selectedDomainClassInfo);
public virtual void HandleNewListItemInsertion (Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView view, Microsoft.VisualStudio.Modeling.DomainClassInfo selectedDomainClassInfo);
abstract member HandleNewListItemInsertion : Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView * Microsoft.VisualStudio.Modeling.DomainClassInfo -> unit
override this.HandleNewListItemInsertion : Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView * Microsoft.VisualStudio.Modeling.DomainClassInfo -> unit
Public Overridable Sub HandleNewListItemInsertion (view As DiagramClientView, selectedDomainClassInfo As DomainClassInfo)

Parameters

view
DiagramClientView

Current view we're working with.

selectedDomainClassInfo
DomainClassInfo

Select element's DomainClassInfo to create.

Applies to