DesignSurfaceElementOperations.GetAssociatedModelElement 方法

获取 ProtoElement 与指定的 protoPresentationElement 通过 PresentationViewsSubject 关系。

命名空间:  Microsoft.VisualStudio.Modeling.Diagrams
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)

语法

声明
Public Shared Function GetAssociatedModelElement ( _
    elementGroupPrototype As ElementGroupPrototype, _
    protoPresentationElement As ProtoElementBase _
) As ProtoElementBase
public static ProtoElementBase GetAssociatedModelElement(
    ElementGroupPrototype elementGroupPrototype,
    ProtoElementBase protoPresentationElement
)

参数

返回值

类型:Microsoft.VisualStudio.Modeling.ProtoElementBase

.NET Framework 安全性

请参见

参考

DesignSurfaceElementOperations 类

Microsoft.VisualStudio.Modeling.Diagrams 命名空间