GraphConditionCollection 類別

這個類別提供操作 Condition 物件集合的方法。

繼承階層架構

System.Object
  Microsoft.VisualStudio.GraphModel.Styles.GraphConditionCollection

命名空間:  Microsoft.VisualStudio.GraphModel.Styles
組件:  Microsoft.VisualStudio.GraphModel (在 Microsoft.VisualStudio.GraphModel.dll 中)

語法

'宣告
Public Class GraphConditionCollection _
    Implements ICollection(Of GraphCondition), IEnumerable(Of GraphCondition),  _
    IEnumerable, IHasGraphOwner
public class GraphConditionCollection : ICollection<GraphCondition>, 
    IEnumerable<GraphCondition>, IEnumerable, IHasGraphOwner
public ref class GraphConditionCollection : ICollection<GraphCondition^>, 
    IEnumerable<GraphCondition^>, IEnumerable, IHasGraphOwner
type GraphConditionCollection =  
    class
        interface ICollection<GraphCondition>
        interface IEnumerable<GraphCondition>
        interface IEnumerable
        interface IHasGraphOwner
    end
public class GraphConditionCollection implements ICollection<GraphCondition>, IEnumerable<GraphCondition>, IEnumerable, IHasGraphOwner

GraphConditionCollection 型別會公開下列成員。

建構函式

  名稱 說明
公用方法 GraphConditionCollection 建構新的樣式指定圖形物件。

回頁首

屬性

  名稱 說明
公用屬性 Count 傳回樣式表示集合中物件的數目。
公用屬性 Graph 取得這個圖形集合所屬的。
公用屬性 IsReadOnly 取得,指出 System.Collections.Generic.ICollection 集合是否為唯讀。
公用屬性 Owner 取得這個圖形集合所屬的。

回頁首

方法

  名稱 說明
公用方法 Add 加入指定的條件。
公用方法 Clear 清除清單情況。
公用方法 Contains 判斷指定的條件是在條件清單該樣式的內容。
公用方法 CopyTo 複製的項目至 System.Collections.Generic.ICollection System.Array,起始於特定 System.Array 索引。
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。
公用方法 GetEnumerator IEnumerable<Condition> 實作。
公用方法 GetHashCode 做為特定型別的雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 Insert 在 清單中的指定位置插入指定的條件。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
公用方法 Remove 從 System.Collections.Generic.ICollection 中移除第一個出現的指定物件。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

明確介面實作

  名稱 說明
明確介面實作私用方法 IEnumerable.GetEnumerator IEnumberable 實作。

回頁首

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.GraphModel.Styles 命名空間