Partager via


DropTargetContext.Set(Transaction, Guid, PointD, GhostShapeCollection) Method

Definition

Adds the drop target context information to the specified transaction for later use.

public:
 static void Set(Microsoft::VisualStudio::Modeling::Transaction ^ transaction, Guid targetDiagramId, Microsoft::VisualStudio::Modeling::Diagrams::PointD dropLocation, Microsoft::VisualStudio::Modeling::Diagrams::GhostShapeCollection ^ ghostShapes);
public static void Set (Microsoft.VisualStudio.Modeling.Transaction transaction, Guid targetDiagramId, Microsoft.VisualStudio.Modeling.Diagrams.PointD dropLocation, Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection ghostShapes);
static member Set : Microsoft.VisualStudio.Modeling.Transaction * Guid * Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection -> unit
Public Shared Sub Set (transaction As Transaction, targetDiagramId As Guid, dropLocation As PointD, ghostShapes As GhostShapeCollection)

Parameters

transaction
Transaction

The transaction in which to save the drop target context.

targetDiagramId
Guid

The diagram Id of the drop target.

dropLocation
PointD

The drop location in absolute world coordinates.

ghostShapes
GhostShapeCollection

The ghost shapes which provide proposed properties (such as proposed bounds). This may be null.

Applies to