Trims this series of elements leaving only the specified element and visibleLevels number of levels of children. This method can be used with organizational charts.
If addAttributes is true, custom attributes are also added to describe the nodes.
Attribute: "NodeType"
- Root - The root node of this series.
- RootWithParents - Root of the result but has parents in this series.
- NoChildren - End node of the resulting series and has no children in this series.
- EndNodeWithChildren - End node of the resulting series that has children in this series.
Attribute: "OrganizationalLevel"
- Integer specifying the organizational level from 1 to n of levels available.
Visual Basic (Declaration) | |
---|---|
Public Overloads Function Trim( _ ByVal parent As Element, _ ByVal visibleLevels As Integer, _ ByVal addAttributes As Boolean _ ) As Series |
Visual Basic (Usage) | ![]() |
---|---|
|
C# | |
---|---|
public Series Trim( Element parent, int visibleLevels, bool addAttributes ) |
Parameters
- parent
- The root element of the resulting series.
- visibleLevels
- Number of levels of children from the root element to return in the resulting series.
- addAttributes
- A bool value indicating whether custom attributes are added to describe the nodes.