DropTargetContext.Set Method
Adds the drop target context information to the specified transaction for later use.
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 Sub Set ( _
transaction As Transaction, _
targetDiagramId As Guid, _
dropLocation As PointD, _
ghostShapes As GhostShapeCollection _
)
public static void Set(
Transaction transaction,
Guid targetDiagramId,
PointD dropLocation,
GhostShapeCollection ghostShapes
)
public:
static void Set(
Transaction^ transaction,
Guid targetDiagramId,
PointD dropLocation,
GhostShapeCollection^ ghostShapes
)
static member Set :
transaction:Transaction *
targetDiagramId:Guid *
dropLocation:PointD *
ghostShapes:GhostShapeCollection -> unit
public static function Set(
transaction : Transaction,
targetDiagramId : Guid,
dropLocation : PointD,
ghostShapes : GhostShapeCollection
)
Parameters
transaction
Type: Microsoft.VisualStudio.Modeling.TransactionThe transaction in which to save the drop target context.
targetDiagramId
Type: System.GuidThe diagram Id of the drop target.
dropLocation
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointDThe drop location in absolute world coordinates.
ghostShapes
Type: Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollectionThe ghost shapes which provide proposed properties (such as proposed bounds). This may be null.
.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.