ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Data.DataEngine Assembly / GrapeCity.Enterprise.Data.DataEngine.DataProcessing Namespace / TablixExtensions Class / CollectLeafNodes<T> Method
members
function that checks whether the current tablix member is a leaf.
function that gets the children of the current tablix member.
if true, returns leaves first to speed first page loading.

In This Topic
    CollectLeafNodes<T> Method
    In This Topic
    Returns a set of leaves 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
    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
    if true, returns leaves first to speed first page loading.

    Type Parameters

    T

    Return Value

    A set of leaves for tablix member.
    See Also