ElementListCompartment::HandleNewListItemInsertion Method (DiagramClientView^, DomainClassInfo^)

 

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.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
virtual void HandleNewListItemInsertion(
	DiagramClientView^ view,
	DomainClassInfo^ selectedDomainClassInfo
)

Parameters

view
Type: Microsoft.VisualStudio.Modeling.Diagrams::DiagramClientView^

Current view we're working with.

selectedDomainClassInfo
Type: Microsoft.VisualStudio.Modeling::DomainClassInfo^

Select element's DomainClassInfo to create.

Return to top
Show: