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,则返回空枚举。

适用于