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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣言
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.Transaction
The transaction in which to save the drop target context.
- targetDiagramId
Type: System.Guid
The diagram Id of the drop target.
- dropLocation
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
The drop location in absolute world coordinates.
- ghostShapes
Type: Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection
The 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.