GhostShapeCollection 類別
GhostShapes 的集合。
繼承階層架構
System.Object
Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection
命名空間: Microsoft.VisualStudio.Modeling.Diagrams
組件: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)
語法
'宣告
<SerializableAttribute> _
Public Class GhostShapeCollection _
Implements ICollection, IEnumerable, ISerializable
[SerializableAttribute]
public class GhostShapeCollection : ICollection,
IEnumerable, ISerializable
GhostShapeCollection 類型會公開下列成員。
建構函式
名稱 | 描述 | |
---|---|---|
GhostShapeCollection(Guid, Guid) | 初始化 GhostShapeCollection 類別的新執行個體。 | |
GhostShapeCollection(SerializationInfo, StreamingContext) | 初始化 GhostShapeCollection 類別的新執行個體。這可以用於還原序列化。 |
回頁首
屬性
名稱 | 描述 | |
---|---|---|
AbsoluteBoundingBox | 取得圍繞集合中所有 GhostShapes 的目前周框矩形。相對於圖表的左上角的矩形(以全局單位表示)。 | |
AreSiblings | 這個集合的成員是否都是同層級? | |
Count | 取得集合中的 GhostShapes 數目。 | |
GridSize | 取得整體虛構圖案集合的格線大小。 | |
IsSynchronized | 取得值,指出對集合的存取是否為同步的 (安全執行緒)。 | |
LocationDelta | 取得整體虛構圖案集合的目前與初始位置之間的差異。 | |
ParentIds | 取得虛構圖案集合中之父 Guid 的陣列。 | |
PrimaryGhostShape | 取得主要虛構圖案。 | |
SourceDiagramId | 取得來源圖表 ID。這可能會傳回 Guid.Empty。 | |
SourceProcessId | 取得來源處理序 ID。 | |
SourceStoreId | 取得來源存放區 ID。這可能會傳回 Guid.Empty。 | |
SyncRoot | 取得物件,可用來對集合進行同步存取。 |
回頁首
方法
名稱 | 描述 | |
---|---|---|
Add | 將 GhostShape 物件加入至集合中。 | |
CopyTo(Array, Int32) | 從特定的陣列索引處開始,將 GhostShapes 複製到陣列。 | |
CopyTo(array<GhostShape[], Int32) | 從特定的陣列索引處開始,將 GhostShapes 複製到 GhostShape[] 陣列。 | |
Equals | 判斷指定的物件是否等於目前物件。 (繼承自 Object)。 | |
Finalize | 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。 | |
Find | 根據指定的來源 ShapeElement guid,取得 GhostShape。 | |
GetEnumerator | 傳回可在 GhostShape 集合中逐一查看的列舉程式。 | |
GetHashCode | 做為預設雜湊函式。 (繼承自 Object)。 | |
GetObjectData | 將序列化這個物件所需的資料填入 SerializationInfo。 | |
GetType | 取得目前執行個體的 Type。 (繼承自 Object)。 | |
MemberwiseClone | 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。 | |
Offset | 以指定的差異來位移每個虛構圖案的目前位置。 | |
ToString | 傳回表示目前物件的字串。 (繼承自 Object)。 |
回頁首
執行緒安全
這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。