共用方式為


DragSourceContext.GetInitialPrimaryShapeId 方法 (ElementGroupPrototype)

傳回在 ElementGroupPototype 中的主要圖形的 Guid。

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

語法

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

參數

傳回值

類型:System.Guid

.NET Framework 安全性

請參閱

參考

DragSourceContext 類別

GetInitialPrimaryShapeId 多載

Microsoft.VisualStudio.Modeling.Diagrams 命名空間