Trims this SeriesCollection of elements leaving only the element with the specified ID and visibleLevels number of levels of children. This method can be used with organizational charts.
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 SeriesCollection.
- NoChildren - End node of the resulting SeriesCollection and has no children in this SeriesCollection.
- EndNodeWithChildren - End node of the resulting SeriesCollection that has children in this SeriesCollection.
Attribute: "OrganizationalLevel"
- Integer specifying the organizational level from 1 to n of levels available.
Visual Basic (Declaration) | |
---|---|
Public Overloads Function Trim( _ ByVal parentID As Integer, _ ByVal visibleLevels As Integer _ ) As SeriesCollection |
Visual Basic (Usage) | ![]() |
---|---|
|
C# | |
---|---|
public SeriesCollection Trim( int parentID, int visibleLevels ) |
Parameters
- parentID
- ID of the root element in the resulting SeriesCollection.
- visibleLevels
- Number of levels of children from the root element to return in the resulting SeriesCollection.