Partilhar via


ElementOperations.MarkRootElements Method

Definition

Mark RootElements in the elementGroup parameter 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.

protected:
 virtual void MarkRootElements(Microsoft::VisualStudio::Modeling::ElementGroup ^ elementGroup, System::Collections::Generic::ICollection<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ elements, Microsoft::VisualStudio::Modeling::ClosureType closureType);
protected virtual void MarkRootElements (Microsoft.VisualStudio.Modeling.ElementGroup elementGroup, System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> elements, Microsoft.VisualStudio.Modeling.ClosureType closureType);
abstract member MarkRootElements : Microsoft.VisualStudio.Modeling.ElementGroup * System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.ClosureType -> unit
override this.MarkRootElements : Microsoft.VisualStudio.Modeling.ElementGroup * System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.ClosureType -> unit
Protected Overridable Sub MarkRootElements (elementGroup As ElementGroup, elements As ICollection(Of ModelElement), closureType As ClosureType)

Parameters

elementGroup
ElementGroup

elementGroup

elements
ICollection<ModelElement>

elements

closureType
ClosureType

closureType

Remarks

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.

Applies to