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


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.

Trims this SeriesCollection 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"

Attribute: "OrganizationalLevel"

Syntax

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

See Also

© 2010 All Rights Reserved.