ElementListCompartment::CreateNewListItem Method (DomainClassInfo^, ModelElement^)
Visual Studio 2015
Creates a new list item based on the currently selected item. If none is selected, then uses the default type.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
protected: virtual ModelElement^ CreateNewListItem( DomainClassInfo^ domainClassInfo, ModelElement^ parent )
Parameters
- domainClassInfo
- Type: Microsoft.VisualStudio.Modeling::DomainClassInfo^
- parent
-
Type:
Microsoft.VisualStudio.Modeling::ModelElement^
Parent model element in which the selected Element is embedded.
- selectedElement
Select element to use a template for new one to be created.
Return Value
Type: Microsoft.VisualStudio.Modeling::ModelElement^
Show: