UnplacedShapesContext Class

Context information associated with drag-and-drop that keeps track of shapes that have not yet been positioned and will require later placement. In any given transaction, we can have unplaced shapes for multiple diagrams, when multiple diagrams need to be fixed up.

Inheritance Hierarchy


Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)


Public NotInheritable Class UnplacedShapesContext
public sealed class UnplacedShapesContext
public ref class UnplacedShapesContext sealed
type UnplacedShapesContext =  class end
public final class UnplacedShapesContext

The UnplacedShapesContext type exposes the following members.


  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member GetUnplacedShapesMap Gets the unplaced shpapes collection from the specified transaction.
Public methodStatic member HasUnplacedShapesContext Gets a value indicating whether any unplaced shapes context is available from the specified transaction.
Public methodStatic member Remove Removes the UnplacedShapesContext from the transaction's context info.
Public methodStatic member SetUnplacedShapesContext Adds the unplaced shape context information to the specified transaction for later use.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


Microsoft.VisualStudio.Modeling.Diagrams Namespace