ElementOperations.AddElementGroupFormat 方法 (IDataObject, ICollection<ModelElement>, ClosureType)

使用 ModelElements,的指定集合添加 ElementGroupPrototype 格式转换为指定的 IDataObject。 此方法调用下列 3 个可重写的方法 (按顺序)。 CreateElementGroup b。 MarkRootElements c。 CreateElementGroupPrototype 然后藏起来在数据参数的创建的 ElementGroupPrototype。

命名空间:  Microsoft.VisualStudio.Modeling
程序集:  Microsoft.VisualStudio.Modeling.Sdk.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.11.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
)

参数

备注

数据格式名称假定为 typeof (ElementGroupPrototype) .FullName。

.NET Framework 安全性

请参见

参考

ElementOperations 类

AddElementGroupFormat 重载

Microsoft.VisualStudio.Modeling 命名空间