Export (0) Print
Expand All

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.

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

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

public class GraphConditionalStyleCollection : ICollection<GraphConditionalStyle>, 
	IEnumerable<GraphConditionalStyle>, IEnumerable, IHasGraphOwner

The GraphConditionalStyleCollection type exposes the following members.

  NameDescription
Public methodGraphConditionalStyleCollectionConstructs new styles object for the given graph.
Top

  NameDescription
Public propertyCountReturn the number of styles in the collection.
Public propertyGraphGets the Graph associated with this nodes collection.
Public propertyHasPendingPropertyChangeEventsReturns true if there are any pending PropertyChange events. If this returns true, call the RaisePendingPropertyChangeEvents method.
Public propertyIsCompiledFind out whether the CompileStyles method must be called.
Public propertyIsReadOnlyGets a value indicating whether the System.Collections.Generic.ICollection is read-only.
Public propertyOwnerGets the Graph associated with this nodes collection.
Top

  NameDescription
Public methodAddAdds the specified style to the collection. If the given style belongs to a different graph, it clones it and returns the new style.
Public methodClearClears the list of styles.
Public methodCompileCompiles the conditional expressions in the styles for this Graph.
Public methodContainsReturns true if the given style is already in the list.
Public methodCopyToCopies the elements of the System.Collections.Generic.ICollection to a System.Array, starting at a particular System.Array index.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodFindStyleFinds existing style by group and value label.
Public methodGetEnumeratorGets the types enumerator for this collection.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInsertInsert the given style at the given location in the list.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodMergeOrInsertAdds 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 methodRaisePendingPropertyChangeEventsRaises 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 methodRemoveRemoves the first occurrence of a specific object from the System.Collections.Generic.ICollection.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorReturns the enumerator for this collection.
Top

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