ElementOperations.AddElementGroupFormat 方法 (IDataObject, ICollection<ModelElement>, ClosureType)
使用指定的 ModelElements 集合添加 the ElementGroupPrototype 格式到指定的 IDataObject。 此方法调用以下 3 个可重写的方法(按顺序)。 CreateElementGroup b。 MarkRootElements c。 CreateElementGroupPrototype 然后它将创建的 CreateElementGroupPrototype 储存在数据参数中。
命名空间: Microsoft.VisualStudio.Modeling
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
语法
声明
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
)
参数
- data
类型:System.Windows.Forms.IDataObject
添加 ElementGroupPrototype 数据格式到的 IDataObject。
- elements
类型:System.Collections.Generic.ICollection<ModelElement>
ModelElements 的集合。
- closureType
类型:Microsoft.VisualStudio.Modeling.ClosureType
筛选元素要使用的类型。
备注
数据格式名假设为 typeof(ElementGroupPrototype).FullName。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。