GraphSetterCollection 类

此类为操作 Setter 对象集合提供方法。

继承层次结构

System.Object
  Microsoft.VisualStudio.GraphModel.Styles.GraphSetterCollection

命名空间:  Microsoft.VisualStudio.GraphModel.Styles
程序集:  Microsoft.VisualStudio.GraphModel(在 Microsoft.VisualStudio.GraphModel.dll 中)

语法

声明
Public Class GraphSetterCollection _
    Implements ICollection(Of GraphSetter), IEnumerable(Of GraphSetter),  _
    IEnumerable, IHasGraphOwner
public class GraphSetterCollection : ICollection<GraphSetter>, 
    IEnumerable<GraphSetter>, IEnumerable, IHasGraphOwner
public ref class GraphSetterCollection : ICollection<GraphSetter^>, 
    IEnumerable<GraphSetter^>, IEnumerable, IHasGraphOwner
type GraphSetterCollection =  
    class
        interface ICollection<GraphSetter>
        interface IEnumerable<GraphSetter>
        interface IEnumerable
        interface IHasGraphOwner
    end
public class GraphSetterCollection implements ICollection<GraphSetter>, IEnumerable<GraphSetter>, IEnumerable, IHasGraphOwner

GraphSetterCollection 类型公开以下成员。

构造函数

  名称 说明
公共方法 GraphSetterCollection 为给定图表构造新的样式对象。

页首

属性

  名称 说明
公共属性 Count 返回集合中的 setter 数。
公共属性 Graph 获取该集合所属的 Graph
公共属性 IsReadOnly 获取指示 System.Collections.Generic.ICollection 是否为只读的值。
公共属性 Owner 获取该集合所属的 Graph

页首

方法

  名称 说明
公共方法 Add 添加指定的 setter。
公共方法 Clear 清除 setter 列表。
公共方法 Contains 查看 Setter 是否在此集合中
公共方法 CopyTo 从特定的 System.Array 索引开始,将 System.Collections.Generic.ICollection 的元素复制到 System.Array。
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 Get 获取属性 setter
公共方法 GetEnumerator IEnumerable<Setter> 实现
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 Remove 从 System.Collections.Generic.ICollection 中移除特定对象的第一个匹配项。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 IEnumerable.GetEnumerator IEnumberable 实现

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.VisualStudio.GraphModel.Styles 命名空间