ElementListCompartment::CreateNewListItem Method (DomainClassInfo^, ModelElement^)

 

Creates a new list item based on the currently selected item. If none is selected, then uses the default type.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
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 to top
Show: