Partager via


DropTargetContext.GetTargetBoundingBox Method

Gets the desired bounding box of the target shape element in world units relative to the top-left of the diagram. The desired bounding box is determined via the GhostShapeCollection updated by GroupBoundsRules. This method returns RectangleD.Empty if it wasn't able to get the target bounding box.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Public Shared Function GetTargetBoundingBox ( _
    transaction As Transaction, _
    targetShapeElementId As Guid _
) As RectangleD
public static RectangleD GetTargetBoundingBox(
    Transaction transaction,
    Guid targetShapeElementId
)
public:
static RectangleD GetTargetBoundingBox(
    Transaction^ transaction, 
    Guid targetShapeElementId
)
static member GetTargetBoundingBox : 
        transaction:Transaction * 
        targetShapeElementId:Guid -> RectangleD
public static function GetTargetBoundingBox(
    transaction : Transaction, 
    targetShapeElementId : Guid
) : RectangleD

Parameters

  • targetShapeElementId
    Type: System.Guid

    The Guid of the target shape element for which to get the bounds.

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD

.NET Framework Security

See Also

Reference

DropTargetContext Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace