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


parentID
ID of the root element in 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.

Trims this series 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.

If addAttributes is true, 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, _
   ByVal addAttributes As Boolean _
) As Series
Visual Basic (Usage)Copy Code
Dim instance As Series
Dim parentID As Integer
Dim visibleLevels As Integer
Dim addAttributes As Boolean
Dim value As Series
 
value = instance.Trim(parentID, visibleLevels, addAttributes)
C# 
public Series Trim( 
   int parentID,
   int visibleLevels,
   bool addAttributes
)

Parameters

parentID
ID of the root element in 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.

See Also

© 2010 All Rights Reserved.