ElementListCompartment.CreateNewListItem Method

Definition

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

protected:
 virtual Microsoft::VisualStudio::Modeling::ModelElement ^ CreateNewListItem(Microsoft::VisualStudio::Modeling::DomainClassInfo ^ domainClassInfo, Microsoft::VisualStudio::Modeling::ModelElement ^ parent);
protected virtual Microsoft.VisualStudio.Modeling.ModelElement CreateNewListItem (Microsoft.VisualStudio.Modeling.DomainClassInfo domainClassInfo, Microsoft.VisualStudio.Modeling.ModelElement parent);
abstract member CreateNewListItem : Microsoft.VisualStudio.Modeling.DomainClassInfo * Microsoft.VisualStudio.Modeling.ModelElement -> Microsoft.VisualStudio.Modeling.ModelElement
override this.CreateNewListItem : Microsoft.VisualStudio.Modeling.DomainClassInfo * Microsoft.VisualStudio.Modeling.ModelElement -> Microsoft.VisualStudio.Modeling.ModelElement
Protected Overridable Function CreateNewListItem (domainClassInfo As DomainClassInfo, parent As ModelElement) As ModelElement

Parameters

domainClassInfo
DomainClassInfo
parent
ModelElement

Parent model element in which the selected Element is embedded.

Returns

Applies to