Delen via


GraphConditionalStyleCollection Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides methods for manipulating a collection of Style objects.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.GraphModel.Styles.GraphConditionalStyleCollection

Namespace:  Microsoft.VisualStudio.GraphModel.Styles
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

Syntax

'Declaration
Public Class GraphConditionalStyleCollection _
    Implements ICollection(Of GraphConditionalStyle), IEnumerable(Of GraphConditionalStyle),  _
    IEnumerable, IHasGraphOwner
public class GraphConditionalStyleCollection : ICollection<GraphConditionalStyle>, 
    IEnumerable<GraphConditionalStyle>, IEnumerable, IHasGraphOwner
public ref class GraphConditionalStyleCollection : ICollection<GraphConditionalStyle^>, 
    IEnumerable<GraphConditionalStyle^>, IEnumerable, IHasGraphOwner
type GraphConditionalStyleCollection =  
    class 
        interface ICollection<GraphConditionalStyle>
        interface IEnumerable<GraphConditionalStyle>
        interface IEnumerable 
        interface IHasGraphOwner 
    end
public class GraphConditionalStyleCollection implements ICollection<GraphConditionalStyle>, IEnumerable<GraphConditionalStyle>, IEnumerable, IHasGraphOwner

The GraphConditionalStyleCollection type exposes the following members.

Constructors

  Name Description
Public method GraphConditionalStyleCollection Constructs new styles object for the given graph.

Top

Properties

  Name Description
Public property Count Return the number of styles in the collection.
Public property Graph Gets the Graph associated with this nodes collection.
Public property HasPendingPropertyChangeEvents Returns true if there are any pending PropertyChange events. If this returns true, call the RaisePendingPropertyChangeEvents method.
Public property IsCompiled Find out whether the CompileStyles method must be called.
Public property IsReadOnly Gets a value indicating whether the System.Collections.Generic.ICollection is read-only.
Public property Owner Gets the Graph associated with this nodes collection.

Top

Methods

  Name Description
Public method Add Adds the specified style to the collection. If the given style belongs to a different graph, it clones it and returns the new style.
Public method Clear Clears the list of styles.
Public method Compile Compiles the conditional expressions in the styles for this Graph.
Public method Contains Returns true if the given style is already in the list.
Public method CopyTo Copies the elements of the System.Collections.Generic.ICollection to a System.Array, starting at a particular System.Array index.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method FindStyle Finds existing style by group and value label.
Public method GetEnumerator Gets the types enumerator for this collection.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Insert Insert the given style at the given location in the list.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method MergeOrInsert Adds this style if one does not already exist with the same target type and conditions. If one exists with the same target type and conditions, merge the setters.
Public method RaisePendingPropertyChangeEvents Raises any PropertyChanged events that have to be raised based on all referenced properties in the conditional expressions and property value expressions in the compiled style set.
Public method Remove Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Returns the enumerator for this collection.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.GraphModel.Styles Namespace