GraphNodeCollection Class

 

This class provides methods for manipulating a collection of Nodes. This class does not preserve the order in which you added the nodes, so that when you enumerate them you will get them back in a random order.

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

System.Object
  Microsoft.VisualStudio.GraphModel.GraphNodeCollection

public sealed class GraphNodeCollection : ICollection<GraphNode>, 
	IEnumerable<GraphNode>, IEnumerable, IReadOnlyCollection<GraphNode>, 
	IHasGraphOwner

NameDescription
System_CAPS_pubpropertyContainers

Returns an enumerable which consists of all nodes that are containers.

System_CAPS_pubpropertyCount

Return the number of nodes in the collection.

System_CAPS_pubpropertyGraph

Gets the Graph associated with this nodes collection

System_CAPS_pubpropertyIsReadOnly

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

System_CAPS_pubpropertyItem[String]

Gets the Node using the given id. Throws exception on set if another node with the same id already exists.

System_CAPS_pubpropertyOwner

Gets the Graph associated with this nodes collection

NameDescription
System_CAPS_pubmethodAdd(GraphNode)

Adds a link to the graph, or merge it with an existing Link object

System_CAPS_pubmethodAdd(GraphNode, GraphNode)

Adds the specified node to the graph.

System_CAPS_pubmethodAdd(IEnumerable<GraphNode>)

Add all the nodes in the given set.

System_CAPS_pubmethodClear()

Remove all nodes in the collection

System_CAPS_pubmethodContains(GraphNode)

Determines if the given node is in this collection

System_CAPS_pubmethodCopyTo(GraphNode[], Int32)

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

System_CAPS_pubmethodCreateNew(String)

Add a new node using the given base name format for the node. This method formats the given string with integer values until it finds an id that is not currently being used, and then creates a node with that id.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGet(GraphNodeId)

Gets the node with the specified id

System_CAPS_pubmethodGet(String)

Gets the node with the specified id

System_CAPS_pubmethodGetByCategory(GraphCategory[])

Returns all nodes in the graph that have the specified categories.

System_CAPS_pubmethodGetByCategory(String[])

Returns all nodes in the graph that have the specified categories

System_CAPS_pubmethodGetByProperty(GraphProperty, Object)

Returns all nodes in the graph that have the specified property value.

System_CAPS_pubmethodGetEnumerator()

Gets the typed enumerator for this collection

System_CAPS_pubmethodGetFiltered(Predicate<GraphNode>)

Returns all nodes in the graph that match according to the given filter

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetOrCreate(GraphNodeId)

Attempts to get the node with the specified id. If not found, it will create a new node.

System_CAPS_pubmethodGetOrCreate(GraphNodeId, String, GraphCategory)

Attempts to get the node with the specified id. If not found, it will create a new node.

System_CAPS_pubmethodGetOrCreate(String)

Attempts to get the node with the specified id. If not found, it will create a new node.

System_CAPS_pubmethodGetOrCreate(String, String, GraphCategory)

Attempts to get the node with the specified id. If not found, it will create a new node.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodRemove(GraphNode)

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

System_CAPS_pubmethodRemove(GraphNode, GraphNode)

Remove the specified node

System_CAPS_pubmethodRemove(GraphNodeId)

Remove the specified node

System_CAPS_pubmethodRemove(IEnumerable<GraphNode>)

Remove all the nodes in the given set.

System_CAPS_pubmethodRemove(String)

Remove the specified node

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventAdded

This event is raised immediately when a new node is added to the collection.

System_CAPS_pubeventRemoved

This event is raised immediately when a node is removed from the collection.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

Gets the enumerator for this collection

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

Return to top
Show: