Summary
Specifies for each document if it is a root of a tree. This results in splitting the generated tree into multiple smaller ones,
removing the root node from the set of children of it's parent and setting it's parent to null
.
Syntax
public Tree WithRoots(DocumentConfig isRoot)
Parameters
Name |
Type |
Description |
isRoot |
DocumentConfig |
A predicate (must return bool ) that specifies if the current document is treated as the root of a new tree. |
Return Value
Type |
Description |
Tree |
The current module instance. |