共用方式為


Partition.GetClosurePrototypeGroup Method

Definition

Overloads

GetClosurePrototypeGroup(ICollection<ModelElement>, ClosureType)

Creates an ElementGroupPrototype of the given closure type based on the given list of root Elements

GetClosurePrototypeGroup(ICollection<ModelElement>, ClosureType, Boolean)

Creates an ElementGroupPrototype of the given closure type based on the given list of root Elements

GetClosurePrototypeGroup(ICollection<ModelElement>, ClosureType)

Creates an ElementGroupPrototype of the given closure type based on the given list of root Elements

public:
 Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ GetClosurePrototypeGroup(System::Collections::Generic::ICollection<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ rootElements, Microsoft::VisualStudio::Modeling::ClosureType type);
[System.Diagnostics.DebuggerStepThrough]
public Microsoft.VisualStudio.Modeling.ElementGroupPrototype GetClosurePrototypeGroup (System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> rootElements, Microsoft.VisualStudio.Modeling.ClosureType type);
[<System.Diagnostics.DebuggerStepThrough>]
member this.GetClosurePrototypeGroup : System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.ClosureType -> Microsoft.VisualStudio.Modeling.ElementGroupPrototype
Public Function GetClosurePrototypeGroup (rootElements As ICollection(Of ModelElement), type As ClosureType) As ElementGroupPrototype

Parameters

rootElements
ICollection<ModelElement>

collection of root elements to begin closure walk from

type
ClosureType

type of closure to build

Returns

an ElementGroupPrototype for the element collection selected in the closure walk

Attributes

Remarks

the element group prototype's DistinguishedElements list will be populated with the root elements list

Applies to

GetClosurePrototypeGroup(ICollection<ModelElement>, ClosureType, Boolean)

Creates an ElementGroupPrototype of the given closure type based on the given list of root Elements

public:
 Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ GetClosurePrototypeGroup(System::Collections::Generic::ICollection<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ rootElements, Microsoft::VisualStudio::Modeling::ClosureType type, bool bypassDemandLoading);
public Microsoft.VisualStudio.Modeling.ElementGroupPrototype GetClosurePrototypeGroup (System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> rootElements, Microsoft.VisualStudio.Modeling.ClosureType type, bool bypassDemandLoading);
member this.GetClosurePrototypeGroup : System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.ClosureType * bool -> Microsoft.VisualStudio.Modeling.ElementGroupPrototype
Public Function GetClosurePrototypeGroup (rootElements As ICollection(Of ModelElement), type As ClosureType, bypassDemandLoading As Boolean) As ElementGroupPrototype

Parameters

rootElements
ICollection<ModelElement>

collection of root elements to begin the closure walk from

type
ClosureType

type of closure to build

bypassDemandLoading
Boolean

indicates whether to bypass demand loading while forming the closure

Returns

an ElementGroupPrototype for the element collection selected in the closure walk

Remarks

All group elements that are not the target of any group-contained, embedding relationship, are marked as root elements in the ElementGroupPrototype.

Applies to