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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣言
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.DiagramClientView
Current view we're working with.
- selectedDomainClassInfo
Type: Microsoft.VisualStudio.Modeling.DomainClassInfo
Select 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.