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