UnplacedShapesContext.GetUnplacedShapesMap(Transaction, Guid) Method

Definition

Gets the unplaced shpapes collection from the specified transaction.

public:
 static System::Collections::IDictionary ^ GetUnplacedShapesMap(Microsoft::VisualStudio::Modeling::Transaction ^ transaction, Guid targetDiagramId);
public static System.Collections.IDictionary GetUnplacedShapesMap (Microsoft.VisualStudio.Modeling.Transaction transaction, Guid targetDiagramId);
static member GetUnplacedShapesMap : Microsoft.VisualStudio.Modeling.Transaction * Guid -> System.Collections.IDictionary
Public Shared Function GetUnplacedShapesMap (transaction As Transaction, targetDiagramId As Guid) As IDictionary

Parameters

transaction
Transaction

The transaction to check for the unplaced shapes context.

targetDiagramId
Guid

The diagram Id of the unplaced shapes.

Returns

If they exist, the collection of unplaced shapes, otherwise an empty IDictionary.

Remarks

The collection of unplaced shapes returned is the value saved to the specified transaction by an earlier call to the static method SetUnplacedShapesContext.

Applies to