Share via


GhostShapeCollection Class

A collection of GhostShapes.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection

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

Syntax

'Declaration
<SerializableAttribute> _
Public Class GhostShapeCollection _
    Implements ICollection, IEnumerable, ISerializable
[SerializableAttribute]
public class GhostShapeCollection : ICollection, 
    IEnumerable, ISerializable
[SerializableAttribute]
public ref class GhostShapeCollection : ICollection, 
    IEnumerable, ISerializable
[<SerializableAttribute>]
type GhostShapeCollection =  
    class 
        interface ICollection 
        interface IEnumerable 
        interface ISerializable 
    end
public class GhostShapeCollection implements ICollection, IEnumerable, ISerializable

The GhostShapeCollection type exposes the following members.

Constructors

  Name Description
Public method GhostShapeCollection(Guid, Guid) Initializes a new instance of the GhostShapeCollection class.
Protected method GhostShapeCollection(SerializationInfo, StreamingContext) Initializes a new instance of the GhostShapeCollection class. This is used for deserialization.

Top

Properties

  Name Description
Public property AbsoluteBoundingBox Gets the current bounding rectangle surrounding all GhostShapes in the collection. The rectangle is in world units relative to the diagram's top-left.
Public property AreSiblings Are the members of this collection all siblings?
Public property Count Gets the number of GhostShapes in the collection.
Public property GridSize Gets the grid size for the ghost shape collection as a whole.
Public property IsSynchronized Gets a value indicating whether access to the collection is synchronized (thread-safe).
Public property LocationDelta Gets the delta between the current and initial location of the ghost shape collection as a whole.
Public property ParentIds Gets an array of parent Guids in the ghost shape collection.
Public property PrimaryGhostShape Gets the primary ghost shape.
Public property SourceDiagramId Gets the source diagram id. This can return Guid.Empty.
Public property SourceProcessId Gets the source process id.
Public property SourceStoreId Gets the source store id. This can return Guid.Empty.
Public property SyncRoot Gets an object that can be used to synchronize access to the collection.

Top

Methods

  Name Description
Public method Add Adds a GhostShape object to the collection.
Public method CopyTo(Array, Int32) Copies the GhostShapes to an Array, starting at a particular Array index.
Public method CopyTo(array<GhostShape[], Int32) Copies the GhostShapes to a GhostShape[] array, starting at a particular Array index.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Find Gets the GhostShape given the source ShapeElement guid.
Public method GetEnumerator Returns an enumerator that can iterate through the GhostShape collection.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetObjectData Populates a SerializationInfo with the data needed to serialize this object.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Offset Offsets the current location of each ghost shape by the specified delta.
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