Delen via


ElementOperations.MarkRootElements Method

Mark RootElements in the elementGroup parameter.

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

Syntax

'Declaration
Protected Overridable Sub MarkRootElements ( _
    elementGroup As ElementGroup, _
    elements As ICollection(Of ModelElement), _
    closureType As ClosureType _
)
protected virtual void MarkRootElements(
    ElementGroup elementGroup,
    ICollection<ModelElement> elements,
    ClosureType closureType
)
protected:
virtual void MarkRootElements(
    ElementGroup^ elementGroup, 
    ICollection<ModelElement^>^ elements, 
    ClosureType closureType
)
abstract MarkRootElements : 
        elementGroup:ElementGroup * 
        elements:ICollection<ModelElement> * 
        closureType:ClosureType -> unit  
override MarkRootElements : 
        elementGroup:ElementGroup * 
        elements:ICollection<ModelElement> * 
        closureType:ClosureType -> unit
protected function MarkRootElements(
    elementGroup : ElementGroup, 
    elements : ICollection<ModelElement>, 
    closureType : ClosureType
)

Parameters

Remarks

This default implementation does not take the elements and closureType parameters into account. All groupElements in the elementGroup object, that are not the target of any group-contained, embedding relationship are marked as root. Called by the ElementOperations implementation of the virtual AddElementGroupFormat method. This method is invoked using parameter values that were passed to the AddElementGroupFormat method. The elementGroup parameter comes from the return value of the virtual CreateElementGroup method.

.NET Framework Security

See Also

Reference

ElementOperations Class

Microsoft.VisualStudio.Modeling Namespace