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.
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
| Name | Description | |
|---|---|---|
![]() | Containers | Returns an enumerable which consists of all nodes that are containers. |
![]() | Count | Return the number of nodes in the collection. |
![]() | Graph | Gets the Graph associated with this nodes collection |
![]() | IsReadOnly | Gets a value indicating whether the System.Collections.Generic.ICollection is read-only. |
![]() | Item[String^] | Gets the Node using the given id. Throws exception on set if another node with the same id already exists. |
![]() | Owner | Gets the Graph associated with this nodes collection |
| Name | Description | |
|---|---|---|
![]() | Add(GraphNode^) | Adds a link to the graph, or merge it with an existing Link object |
![]() | Add(GraphNode^, GraphNode^) | Adds the specified node to the graph. |
![]() | Add(IEnumerable<GraphNode^>^) | Add all the nodes in the given set. |
![]() | Clear() | Remove all nodes in the collection |
![]() | Contains(GraphNode^) | Determines if the given node is in this collection |
![]() | CopyTo(array<GraphNode^>^, Int32) | Copies the elements of the System.Collections.Generic.ICollection to an System.Array, starting at a particular System.Array index. |
![]() | CreateNew(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. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Get(GraphNodeId^) | Gets the node with the specified id |
![]() | Get(String^) | Gets the node with the specified id |
![]() | GetByCategory(array<GraphCategory^>^) | Returns all nodes in the graph that have the specified categories. |
![]() | GetByCategory(array<String^>^) | Returns all nodes in the graph that have the specified categories |
![]() | GetByProperty(GraphProperty^, Object^) | Returns all nodes in the graph that have the specified property value. |
![]() | GetEnumerator() | Gets the typed enumerator for this collection |
![]() | GetFiltered(Predicate<GraphNode^>^) | Returns all nodes in the graph that match according to the given filter |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetOrCreate(GraphNodeId^) | Attempts to get the node with the specified id. If not found, it will create a new node. |
![]() | GetOrCreate(GraphNodeId^, String^, GraphCategory^) | Attempts to get the node with the specified id. If not found, it will create a new node. |
![]() | GetOrCreate(String^) | Attempts to get the node with the specified id. If not found, it will create a new node. |
![]() | GetOrCreate(String^, String^, GraphCategory^) | Attempts to get the node with the specified id. If not found, it will create a new node. |
![]() | GetType() | (Inherited from Object.) |
![]() | Remove(GraphNode^) | Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection. |
![]() | Remove(GraphNode^, GraphNode^) | Remove the specified node |
![]() | Remove(GraphNodeId^) | Remove the specified node |
![]() | Remove(IEnumerable<GraphNode^>^) | Remove all the nodes in the given set. |
![]() | Remove(String^) | Remove the specified node |
![]() | ToString() | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEnumerable::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.




