DropTargetContext::GetTargetBoundingBox Method (Transaction^, Guid)
Visual Studio 2015
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.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
public: static RectangleD GetTargetBoundingBox( Transaction^ transaction, Guid targetShapeElementId )
Parameters
- transaction
-
Type:
Microsoft.VisualStudio.Modeling::Transaction^
The transaction to check for the drop target context.
- 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
Show: