Share via


GraphSetterCollection Class

Definition

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

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

Constructors

GraphSetterCollection(Graph)

Construct new styles object for the given graph.

Properties

Count

Return the number of setters 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(GraphSetter)

Adds the specified setter.

Clear()

Clears the list of setters.

Contains(GraphSetter)

Checks to see if the Setter is in this collection

CopyTo(GraphSetter[], Int32)

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

Get(String)

Get the property setter

GetEnumerator()

IEnumerable<Setter> implementation

Remove(GraphSetter)

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

Explicit Interface Implementations

IEnumerable.GetEnumerator()

IEnumerable 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