dotnetCHARTING Send comments on this topic.
Trim(Int32,Int32) Method
See Also 
dotnetCHARTING Namespace > SeriesCollection Class > Trim Method : Trim(Int32,Int32) Method


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.

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"

Attribute: "OrganizationalLevel"

Syntax

Visual Basic (Declaration) 
Public Overloads Function Trim( _
   ByVal parentID As Integer, _
   ByVal visibleLevels As Integer _
) As SeriesCollection
Visual Basic (Usage)Copy Code
Dim instance As SeriesCollection
Dim parentID As Integer
Dim visibleLevels As Integer
Dim value As SeriesCollection
 
value = instance.Trim(parentID, visibleLevels)
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.

See Also

© 2010 All Rights Reserved.