Graph.GetGroupDescendants Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetGroupDescendants(IEnumerable<GraphObject>) |
Get a flat list of all the descendant nodes of the given list of graph objects where some of those objects could be groups. |
GetGroupDescendants(IEnumerable<GraphObject>, Predicate<GraphGroup>, Predicate<GraphNode>) |
Get a flat list of all the descendant nodes of the given list of graph objects where some of those objects could be groups, filtered to include only the nodes and groups that match the given predicates. |
GetGroupDescendants(IEnumerable<GraphObject>)
Get a flat list of all the descendant nodes of the given list of graph objects where some of those objects could be groups.
public:
static System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphNode ^> ^ GetGroupDescendants(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphObject ^> ^ graphObjects);
public static System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphNode> GetGroupDescendants (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphObject> graphObjects);
static member GetGroupDescendants : seq<Microsoft.VisualStudio.GraphModel.GraphObject> -> seq<Microsoft.VisualStudio.GraphModel.GraphNode>
Public Shared Function GetGroupDescendants (graphObjects As IEnumerable(Of GraphObject)) As IEnumerable(Of GraphNode)
Parameters
- graphObjects
- IEnumerable<GraphObject>
The list of objects to flatten
Returns
The flat list of all descendant nodes, including the nodes for the groups that were flattened
Applies to
GetGroupDescendants(IEnumerable<GraphObject>, Predicate<GraphGroup>, Predicate<GraphNode>)
Get a flat list of all the descendant nodes of the given list of graph objects where some of those objects could be groups, filtered to include only the nodes and groups that match the given predicates.
public:
static System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphNode ^> ^ GetGroupDescendants(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphObject ^> ^ graphObjects, Predicate<Microsoft::VisualStudio::GraphModel::GraphGroup ^> ^ groupFilter, Predicate<Microsoft::VisualStudio::GraphModel::GraphNode ^> ^ nodeFilter);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.GraphModel.Graph+<GetGroupDescendants>d__73))]
public static System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphNode> GetGroupDescendants (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphObject> graphObjects, Predicate<Microsoft.VisualStudio.GraphModel.GraphGroup> groupFilter, Predicate<Microsoft.VisualStudio.GraphModel.GraphNode> nodeFilter);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.GraphModel.Graph+<GetGroupDescendants>d__73))>]
static member GetGroupDescendants : seq<Microsoft.VisualStudio.GraphModel.GraphObject> * Predicate<Microsoft.VisualStudio.GraphModel.GraphGroup> * Predicate<Microsoft.VisualStudio.GraphModel.GraphNode> -> seq<Microsoft.VisualStudio.GraphModel.GraphNode>
Public Shared Iterator Function GetGroupDescendants (graphObjects As IEnumerable(Of GraphObject), groupFilter As Predicate(Of GraphGroup), nodeFilter As Predicate(Of GraphNode)) As IEnumerable(Of GraphNode)
Parameters
- graphObjects
- IEnumerable<GraphObject>
The list of objects to flatten
- groupFilter
- Predicate<GraphGroup>
A predicate for filtering the groups you want to visit
Returns
The flat list of all descendant nodes, including the nodes for the groups that were flattened
- Attributes