ActiveReports 12
CollectLeafNodes<T> Method

GrapeCity.ActiveReports.v12 Assembly > GrapeCity.Enterprise.Data.DataEngine.DataProcessing Namespace > TablixExtensions Class : CollectLeafNodes<T> Method
function that checks whether the current tablix member is a leaf
function that gets the children of the current tablix member
Returns a set leafs for tablix member
Syntax
'Declaration
 
Public Shared Function CollectLeafNodes(Of T)( _
   ByVal members As IEnumerable(Of T), _
   ByVal isLeaf As Func(Of T,Boolean), _
   ByVal getChildren As Func(Of T,IEnumerable(Of T)), _
   Optional ByVal leavesFirst As Boolean _
) As IEnumerable(Of T)
public static IEnumerable<T> CollectLeafNodes<T>( 
   IEnumerable<T> members,
   Func<T,bool> isLeaf,
   Func<T,IEnumerable<T>> getChildren,
   bool leavesFirst
)

Parameters

members
isLeaf
function that checks whether the current tablix member is a leaf
getChildren
function that gets the children of the current tablix member
leavesFirst

Type Parameters

T
See Also

Reference

TablixExtensions Class
TablixExtensions Members