共用方式為


DesignSurfaceElementOperations.GetTargetDiagramId 方法

取得圖表祕透過 ElementGroupPrototype 合併/CanMerge 源自於這個類別的執行個體的 Id。

命名空間:  Microsoft.VisualStudio.Modeling.Diagrams
組件:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)

語法

'宣告
Public Shared Function GetTargetDiagramId ( _
    elementGroupPrototype As ElementGroupPrototype _
) As Guid
public static Guid GetTargetDiagramId(
    ElementGroupPrototype elementGroupPrototype
)

參數

傳回值

型別:System.Guid
目標圖表中或如果沒有設定 EGP 的目標內容中的 Guid.Empty 的識別碼。

.NET Framework 安全性

請參閱

參考

DesignSurfaceElementOperations 類別

Microsoft.VisualStudio.Modeling.Diagrams 命名空間