共用方式為


GraphCategoryCollection 類別

定義

public ref class GraphCategoryCollection : System::Collections::Generic::ICollection<Microsoft::VisualStudio::GraphModel::GraphCategory ^>, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphCategory ^>
public class GraphCategoryCollection : System.Collections.Generic.ICollection<Microsoft.VisualStudio.GraphModel.GraphCategory>, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphCategory>
type GraphCategoryCollection = class
    interface ICollection<GraphCategory>
    interface seq<GraphCategory>
    interface IEnumerable
Public Class GraphCategoryCollection
Implements ICollection(Of GraphCategory), IEnumerable(Of GraphCategory)
繼承
GraphCategoryCollection
實作

建構函式

GraphCategoryCollection(GraphSchema)

屬性

Count

取得集合中包含的項目數目

IsReadOnly

取得值,指出集合是否為唯讀

Schema

方法

Add(GraphCategory)

將項目加入集合

AddNewCategory(String)

向預設元數據建立者註冊新的 GraphCategory。

AddNewCategory(String, Func<GraphMetadata>)

註冊新的 GraphCategory

Clear()

移除集合的所有項目。

Contains(GraphCategory)

判斷此集合是否包含特定的值。

Copy(GraphCategoryCollection, Graph, Graph)

將 GraphCategories 從一個集合複製到另一個集合,包括來源圖表中的元數據到目的地圖表。

CopyTo(GraphCategory[], Int32)

從特定的 System.Array 索引開始,將集合的項目複製到 System.Array

GetCategoriesBasedOn(GraphCategory)

取得所有類別的列舉,這些類別是以指定的基底類別為基礎。

GetEnumerator()

傳回圖表類別的列舉值

Remove(GraphCategory)

從集合中移除第一個出現的特定物件

明確介面實作

IEnumerable<GraphCategory>.GetEnumerator()

傳回圖表類別的列舉值

擴充方法

EmptyIfNull<T>(IEnumerable<T>)

如果此列舉不是 Null,則傳回此列舉。 如果是 null,則傳回空列舉。

適用於