This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.

Syntax

C# Copy imageCopy Code
                                  public class Tree
Visual Basic (Declaration) Copy imageCopy Code
                                  Public Class Tree

The type exposes the following members.

Public Constructors

  Name Description
Public method Tree Overloaded.

Public Methods

  Name Description
Public method AddItem Overloaded.
Public method ConvertToFolder
Converts an item to a folder.
Public method ConvertToNormalItem Overloaded.
Public method Equals (Inherited from Object.)
Public method Exists
Returns true if the given itemnumber exists.
Public method GetChildCount
Returns the number of children of a node
Public method GetCommonParents
Returns the common parent of an array of nodes
Public method GetHashCode (Inherited from Object.)
Public method GetHighestParents
Returns an IntList of parents of the list of nodes
Public method GetLevel
Returns the level of the given item number
Public method GetParent
Reutrns the parent number of an item
Public method GetType (Inherited from Object.)
Public method IsDescendantOf
Checks if an item is a descendant of a given parent item.
Public method IsFolder
Tests if an item is a folder
Public method MoveBranch
Moves an item and all its children to a new parent Throws an exception if either item is not found in the tree, if the newParent is not a folder or if newParent is a descendant of itemNumber
Public method RemoveBranch Overloaded.
Public method RemoveItem Overloaded.
Public method SortByLevel
Sort the list of nodes by their level
Public method ToArray Overloaded.
Public method ToIntList Overloaded.
Public method ToString Overloaded.

Protected Methods

  Name Description
Protected method Finalize (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)

Public Fields

  Name Description
Public field Static member IllegalItemNumber
Illegal item number

Public Properties

  Name Description
Public property Count
Gets the number of nodes
Public property RootNumber
Gets the root number of the tree

See Also

Smartsite.Tools Namespace
Advanced