DragSourceContext.GetInitialPrimaryShapeBounds Method (ElementGroupPrototype)
Returns the bounds (in absolute world coordinates) of the primary shape in the ElementGroupPrototype.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaration
Public Shared Function GetInitialPrimaryShapeBounds ( _
elementGroupPrototype As ElementGroupPrototype _
) As RectangleD
public static RectangleD GetInitialPrimaryShapeBounds(
ElementGroupPrototype elementGroupPrototype
)
public:
static RectangleD GetInitialPrimaryShapeBounds(
ElementGroupPrototype^ elementGroupPrototype
)
static member GetInitialPrimaryShapeBounds :
elementGroupPrototype:ElementGroupPrototype -> RectangleD
public static function GetInitialPrimaryShapeBounds(
elementGroupPrototype : ElementGroupPrototype
) : RectangleD
Parameters
- elementGroupPrototype
Type: Microsoft.VisualStudio.Modeling.ElementGroupPrototype
The ElementGroupPrototype where the DragSourceContext has been saved to.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.