共用方式為


DragSourceContext.GetInitialPrimaryShapeBounds 方法 (ElementGroupPrototype)

傳回 ElementGroupPrototype 中主要圖形的界限 (在絕對全局座標中)。

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

語法

'宣告
Public Shared Function GetInitialPrimaryShapeBounds ( _
    elementGroupPrototype As ElementGroupPrototype _
) As RectangleD
public static RectangleD GetInitialPrimaryShapeBounds(
    ElementGroupPrototype elementGroupPrototype
)

參數

傳回值

類型:Microsoft.VisualStudio.Modeling.Diagrams.RectangleD

.NET Framework 安全性

請參閱

參考

DragSourceContext 類別

GetInitialPrimaryShapeBounds 多載

Microsoft.VisualStudio.Modeling.Diagrams 命名空間