Partilhar via


ElementOperations.AddElementGroupFormat Method

Definition

Overloads

AddElementGroupFormat(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.

AddElementGroupFormat(IDataObject, ICollection<ModelElement>, ClosureType, Boolean)

Adds the ElementGroupPrototype format to the specified IDataObject using the specified collection of ModelElements. Can be called from derived classes to force demand load of element links in order to create the collection of model elements.

AddElementGroupFormat(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.

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

Parameters

data
IDataObject

The IDataObject to add the ElementGroupPrototype data format to.

elements
ICollection<ModelElement>

The collection of ModelElements.

closureType
ClosureType

The type of closure to use to filter the elements.

Remarks

The data format name is assumed to be typeof(ElementGroupPrototype).FullName.

Applies to

AddElementGroupFormat(IDataObject, ICollection<ModelElement>, ClosureType, Boolean)

Adds the ElementGroupPrototype format to the specified IDataObject using the specified collection of ModelElements. Can be called from derived classes to force demand load of element links in order to create the collection of model elements.

protected:
 void AddElementGroupFormat(System::Windows::Forms::IDataObject ^ data, System::Collections::Generic::ICollection<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ elements, Microsoft::VisualStudio::Modeling::ClosureType closureType, bool bypassDemandLoading);
protected void AddElementGroupFormat (System.Windows.Forms.IDataObject data, System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> elements, Microsoft.VisualStudio.Modeling.ClosureType closureType, bool bypassDemandLoading);
member this.AddElementGroupFormat : System.Windows.Forms.IDataObject * System.Collections.Generic.ICollection<Microsoft.VisualStudio.Modeling.ModelElement> * Microsoft.VisualStudio.Modeling.ClosureType * bool -> unit
Protected Sub AddElementGroupFormat (data As IDataObject, elements As ICollection(Of ModelElement), closureType As ClosureType, bypassDemandLoading As Boolean)

Parameters

data
IDataObject

The IDataObject to add the ElementGroupPrototype data format to.

elements
ICollection<ModelElement>

The collection of ModelElements.

closureType
ClosureType

The type of closure to use to filter the elements.

bypassDemandLoading
Boolean

Whether or not element links should be demand loaded in order to create the collection of model elements.

Remarks

The data format name is assumed to be typeof(ElementGroupPrototype).FullName.

Applies to