Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A collection of GhostShapes.
Inheritance Hierarchy
System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection
Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.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 | |
|---|---|---|
| .gif) | GhostShapeCollection(Guid, Guid) | Initializes a new instance of the GhostShapeCollection class. | 
| .gif) | GhostShapeCollection(SerializationInfo, StreamingContext) | Initializes a new instance of the GhostShapeCollection class. This is used for deserialization. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | 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. | 
| .gif) | AreSiblings | Are the members of this collection all siblings? | 
| .gif) | Count | Gets the number of GhostShapes in the collection. | 
| .gif) | GridSize | Gets the grid size for the ghost shape collection as a whole. | 
| .gif) | IsSynchronized | Gets a value indicating whether access to the collection is synchronized (thread-safe). | 
| .gif) | LocationDelta | Gets the delta between the current and initial location of the ghost shape collection as a whole. | 
| .gif) | ParentIds | Gets an array of parent Guids in the ghost shape collection. | 
| .gif) | PrimaryGhostShape | Gets the primary ghost shape. | 
| .gif) | SourceDiagramId | Gets the source diagram id. This can return Guid.Empty. | 
| .gif) | SourceProcessId | Gets the source process id. | 
| .gif) | SourceStoreId | Gets the source store id. This can return Guid.Empty. | 
| .gif) | SyncRoot | Gets an object that can be used to synchronize access to the collection. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Add | Adds a GhostShape object to the collection. | 
| .gif) | CopyTo(Array, Int32) | Copies the GhostShapes to an Array, starting at a particular Array index. | 
| .gif) | CopyTo(array<GhostShape[], Int32) | Copies the GhostShapes to a GhostShape[] array, starting at a particular Array index. | 
| .gif) | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | Find | Gets the GhostShape given the source ShapeElement guid. | 
| .gif) | GetEnumerator | Returns an enumerator that can iterate through the GhostShape collection. | 
| .gif) | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
| .gif) | GetObjectData | Populates a SerializationInfo with the data needed to serialize this object. | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | Offset | Offsets the current location of each ghost shape by the specified delta. | 
| .gif) | 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.