Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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 | |
|---|---|---|
![]() |
GraphConditionalStyleCollection | Constructs new styles object for the given graph. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
Count | Return the number of styles in the collection. |
![]() |
Graph | Gets the Graph associated with this nodes collection. |
![]() |
HasPendingPropertyChangeEvents | Returns true if there are any pending PropertyChange events. If this returns true, call the RaisePendingPropertyChangeEvents method. |
![]() |
IsCompiled | Find out whether the CompileStyles method must 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. |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
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. |
![]() |
Clear | Clears the list of styles. |
![]() |
Compile | Compiles the conditional expressions in the styles for this Graph. |
![]() |
Contains | Returns true if the given style is already in the list. |
![]() |
CopyTo | Copies the elements of the System.Collections.Generic.ICollection to a System.Array, starting at a particular System.Array index. |
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
FindStyle | Finds existing style by group and value label. |
![]() |
GetEnumerator | Gets the types enumerator for this collection. |
![]() |
GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
Insert | Insert the given style at the given location in the list. |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
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. |
![]() |
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. |
![]() |
Remove | Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection. |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
![]() ![]() |
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.
.gif)
.gif)
.gif)
.gif)
.gif)