GraphConditionalStyleCollection Class

Definition

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

public ref class GraphConditionalStyleCollection : Microsoft::VisualStudio::GraphModel::IHasGraphOwner, System::Collections::Generic::ICollection<Microsoft::VisualStudio::GraphModel::Styles::GraphConditionalStyle ^>, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::Styles::GraphConditionalStyle ^>
public class GraphConditionalStyleCollection : Microsoft.VisualStudio.GraphModel.IHasGraphOwner, System.Collections.Generic.ICollection<Microsoft.VisualStudio.GraphModel.Styles.GraphConditionalStyle>, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.Styles.GraphConditionalStyle>
type GraphConditionalStyleCollection = class
    interface ICollection<GraphConditionalStyle>
    interface seq<GraphConditionalStyle>
    interface IEnumerable
    interface IHasGraphOwner
Public Class GraphConditionalStyleCollection
Implements ICollection(Of GraphConditionalStyle), IEnumerable(Of GraphConditionalStyle), IHasGraphOwner
Inheritance
GraphConditionalStyleCollection
Implements

Constructors

GraphConditionalStyleCollection(Graph)

Construct new styles object for the given graph.

Properties

Count

Return the number of styles in the collection.

Graph

Gets the Graph associated with this nodes collection

HasPendingPropertyChangeEvents

Return true if there are any pending PropertyChange events. If this returns true then call the RaisePendingPropertyChangeEvents method.

IsCompiled

Find out if the CompileStyles method needs to be called.

IsReadOnly

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

Owner

Gets the Graph associated with this nodes collection

Methods

Add(GraphConditionalStyle)

Adds the specified style to the collection. If the given style belongs to a different graph then it clones it and returns the new style.

Clear()

Clear the list of styles.

Compile(EventHandler<GraphErrorEventArgs>)

Compile the conditional expressions in the styles for this Graph.

Contains(GraphConditionalStyle)

Return true if the given style is already in the list.

CopyTo(GraphConditionalStyle[], Int32)

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

FindStyle(String)

Find existing style by groupLabel

GetEnumerator()

Gets the types enumerator for this collection

Insert(Int32, GraphConditionalStyle)

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

MergeOrInsert(GraphConditionalStyle, Int32)

Add this style if one doesn't already exist with the same target type and conditions. If one exists with the same target type and conditions then merge the setters.

RaisePendingPropertyChangeEvents(IEnumerable<GraphObject>)

Raise any PropertyChanged events that need to be raised based on all referenced properties in the conditional expressions and property value expressions in the compiled style set.

Remove(GraphConditionalStyle)

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

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns the enumerator for this collection

Extension Methods

EmptyIfNull<T>(IEnumerable<T>)

Applies to