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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Dichiarazione
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
- 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
.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.