ElementListCompartment.CreateNewListItem Method

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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Syntax

'Declaration
Protected Overridable Function CreateNewListItem ( _
    domainClassInfo As DomainClassInfo, _
    parent As ModelElement _
) As ModelElement
protected virtual ModelElement CreateNewListItem(
    DomainClassInfo domainClassInfo,
    ModelElement parent
)
protected:
virtual ModelElement^ CreateNewListItem(
    DomainClassInfo^ domainClassInfo, 
    ModelElement^ parent
)
abstract CreateNewListItem : 
        domainClassInfo:DomainClassInfo * 
        parent:ModelElement -> ModelElement  
override CreateNewListItem : 
        domainClassInfo:DomainClassInfo * 
        parent:ModelElement -> ModelElement
protected function CreateNewListItem(
    domainClassInfo : DomainClassInfo, 
    parent : ModelElement
) : ModelElement

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.ModelElement

.NET Framework Security

See Also

Reference

ElementListCompartment Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace