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
view
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientViewCurrent view we're working with.
selectedDomainClassInfo
Type: Microsoft.VisualStudio.Modeling.DomainClassInfoSelect element's DomainClassInfo to create.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.