UnplacedShapesContext.SetUnplacedShapesContext Method
Adds the unplaced shape 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 SetUnplacedShapesContext ( _
transaction As Transaction, _
targetDiagram As Diagram, _
unplacedShapeMap As IDictionary _
)
public static void SetUnplacedShapesContext(
Transaction transaction,
Diagram targetDiagram,
IDictionary unplacedShapeMap
)
public:
static void SetUnplacedShapesContext(
Transaction^ transaction,
Diagram^ targetDiagram,
IDictionary^ unplacedShapeMap
)
static member SetUnplacedShapesContext :
transaction:Transaction *
targetDiagram:Diagram *
unplacedShapeMap:IDictionary -> unit
public static function SetUnplacedShapesContext(
transaction : Transaction,
targetDiagram : Diagram,
unplacedShapeMap : IDictionary
)
Parameters
- transaction
Type: Microsoft.VisualStudio.Modeling.Transaction
The transaction in which to save the unplaced shape context.
- targetDiagram
Type: Microsoft.VisualStudio.Modeling.Diagrams.Diagram
The diagram with the unplaced shapes.
- unplacedShapeMap
Type: System.Collections.IDictionary
A collection of shapes that need to be placed. The dictionary maps (unplaced shapes) ShapeElements to a bool which indicates if the unplaced shape was created during view fixup.
.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.