GraphConditionCollection 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此类提供用于操作 Condition 对象集合的方法。
public ref class GraphConditionCollection : Microsoft::VisualStudio::GraphModel::IHasGraphOwner, System::Collections::Generic::ICollection<Microsoft::VisualStudio::GraphModel::Styles::GraphCondition ^>, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::Styles::GraphCondition ^>
public class GraphConditionCollection : Microsoft.VisualStudio.GraphModel.IHasGraphOwner, System.Collections.Generic.ICollection<Microsoft.VisualStudio.GraphModel.Styles.GraphCondition>, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.Styles.GraphCondition>
type GraphConditionCollection = class
interface ICollection<GraphCondition>
interface seq<GraphCondition>
interface IEnumerable
interface IHasGraphOwner
Public Class GraphConditionCollection
Implements ICollection(Of GraphCondition), IEnumerable(Of GraphCondition), IHasGraphOwner
- 继承
-
GraphConditionCollection
- 实现
构造函数
GraphConditionCollection(Graph) |
为给定图形构造新样式对象。 |
属性
Count |
返回集合中的样式数。 |
Graph |
获取此集合所属的 Graph |
IsReadOnly |
获取一个值,该值指示 System.Collections.Generic.ICollection 是否为只读。 |
Owner |
获取此集合所属的 Graph |
方法
Add(GraphCondition) |
添加指定的条件。 |
Clear() |
清除条件列表。 |
Contains(GraphCondition) |
确定给定条件是否在此样式的条件列表中。 |
CopyTo(GraphCondition[], Int32) |
从特定的 System.Array 索引开始,将 System.Collections.Generic.ICollection 的元素复制到 System.Array。 |
GetEnumerator() |
IEnumerable<条件> 实现 |
Insert(Int32, GraphCondition) |
在列表中的给定位置插入给定条件。 |
Remove(GraphCondition) |
从 System.Collections.Generic.ICollection 中删除特定对象的第一个匹配项。 |
显式接口实现
IEnumerable.GetEnumerator() |
IEnumberable 实现 |
扩展方法
EmptyIfNull<T>(IEnumerable<T>) |
如果枚举不为 null,则返回此枚举。 如果为 null,则返回空枚举。 |