ElementOperations.AddElementGroupFormat Method (IDataObject, ICollection<ModelElement>, ClosureType)
Adds the ElementGroupPrototype format to the specified IDataObject using the specified collection of ModelElements. This method calls the following 3 overridable methods(in order) a. CreateElementGroup b. MarkRootElements c. CreateElementGroupPrototype It then stashes the created ElementGroupPrototype in the data parameter.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
Protected Overridable Sub AddElementGroupFormat ( _
data As IDataObject, _
elements As ICollection(Of ModelElement), _
closureType As ClosureType _
)
protected virtual void AddElementGroupFormat(
IDataObject data,
ICollection<ModelElement> elements,
ClosureType closureType
)
protected:
virtual void AddElementGroupFormat(
IDataObject^ data,
ICollection<ModelElement^>^ elements,
ClosureType closureType
)
abstract AddElementGroupFormat :
data:IDataObject *
elements:ICollection<ModelElement> *
closureType:ClosureType -> unit
override AddElementGroupFormat :
data:IDataObject *
elements:ICollection<ModelElement> *
closureType:ClosureType -> unit
protected function AddElementGroupFormat(
data : IDataObject,
elements : ICollection<ModelElement>,
closureType : ClosureType
)
Parameters
data
Type: IDataObjectThe IDataObject to add the ElementGroupPrototype data format to.
elements
Type: ICollection<ModelElement>The collection of ModelElements.
closureType
Type: Microsoft.VisualStudio.Modeling.ClosureTypeThe type of closure to use to filter the elements.
Remarks
The data format name is assumed to be typeof(ElementGroupPrototype).FullName.
.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.