Delen via


ElementListCompartment.HandleNewListItemInsertion Method

Creates a new list item based on the currently selected item. If none is selected, then uses the default type. Then adds the new item into the Items list and automatically sets it to start editing that item.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Public Overridable Sub HandleNewListItemInsertion ( _
    view As DiagramClientView, _
    selectedDomainClassInfo As DomainClassInfo _
)
public virtual void HandleNewListItemInsertion(
    DiagramClientView view,
    DomainClassInfo selectedDomainClassInfo
)
public:
virtual void HandleNewListItemInsertion(
    DiagramClientView^ view, 
    DomainClassInfo^ selectedDomainClassInfo
)
abstract HandleNewListItemInsertion : 
        view:DiagramClientView * 
        selectedDomainClassInfo:DomainClassInfo -> unit  
override HandleNewListItemInsertion : 
        view:DiagramClientView * 
        selectedDomainClassInfo:DomainClassInfo -> unit
public function HandleNewListItemInsertion(
    view : DiagramClientView, 
    selectedDomainClassInfo : DomainClassInfo
)

Parameters

.NET Framework Security

See Also

Reference

ElementListCompartment Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace