Share via


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

System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.UnplacedShapesContext

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

Syntax

'Declaration
Public NotInheritable Class UnplacedShapesContext
public sealed class UnplacedShapesContext
public ref class UnplacedShapesContext sealed
[<Sealed>]
type UnplacedShapesContext =  class end
public final class UnplacedShapesContext

The UnplacedShapesContext type exposes the following members.

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (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.)

Top

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

Reference

Microsoft.VisualStudio.Modeling.Diagrams Namespace