Partager via


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

Syntax

'Déclaration
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