Share via


GraphConditionCollection Class

Definition

This class provides methods for manipulating a collection of Condition objects.

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
Inheritance
GraphConditionCollection
Implements

Constructors

GraphConditionCollection(Graph)

Construct new styles object for the given graph.

Properties

Count

Return the number of styles in the collection.

Graph

Get the Graph that this collection belongs to

IsReadOnly

Gets a value indicating whether the System.Collections.Generic.ICollection is read-only.

Owner

Get the Graph that this collection belongs to

Methods

Add(GraphCondition)

Adds the specified condition.

Clear()

Clear the list of conditions.

Contains(GraphCondition)

Determines if the given condition is in the list of conditions for this style.

CopyTo(GraphCondition[], Int32)

Copies the elements of the System.Collections.Generic.ICollection to an System.Array, starting at a particular System.Array index.

GetEnumerator()

IEnumerable<Condition> implementation

Insert(Int32, GraphCondition)

Insert the given Condition at the given location in the list.

Remove(GraphCondition)

Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

IEnumberable implementation

Extension Methods

EmptyIfNull<T>(IEnumerable<T>)

Return this enumeration in case it is not null. In case it is null return empty enumeration.

Applies to