UnplacedShapesContext.GetUnplacedShapesMap(Transaction, Guid) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.