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 sealed class Hierarchy
Visual Basic (Declaration) Copy imageCopy Code
                                  Public NotInheritable Class Hierarchy

The type exposes the following methods.

Public Methods

  Name Description
Public method AddItem
Add an item under a given parent
(Inherited from Tree.)
Public method AddItem
Add an item under a given parent
(Inherited from Tree.)
Public method ConvertToFolder
Converts an item to a folder.
(Inherited from Tree.)
Public method ConvertToNormalItem
Converts a folder to a normal item. Throws a TreeHierarchyException if the folder has children.
(Inherited from Tree.)
Public method ConvertToNormalItem
Convert a folder to a normal item.
(Inherited from Tree.)
Public method Dispose
Disposes this instance.
Public method Equals (Inherited from Object.)
Public method Exists
Returns true if the given item number exists.
(Overrides Tree..::Exists(Int32).)
Public method GetChildCount
Returns the number of children of a node
(Inherited from Tree.)
Public method GetCommonParents
Returns the common parent of an array of nodes
(Inherited from Tree.)
Public method GetHashCode (Inherited from Object.)
Public method GetHighestParents
Returns an IntList of parents of the list of nodes
(Inherited from Tree.)
Public method GetItemByTitlePath
Gets the item by title path.
Public method GetLevel
Returns the level of the given item number
(Overrides Tree..::GetLevel(Int32).)
Public method GetParent
Reutrns the parent number of an item
(Overrides Tree..::GetParent(Int32).)
Public method GetSubTree
Gets the subtree to which the item belongs.
Public method GetSubTrees
Gets the subtrees to which the item belongs.
Public method GetType (Inherited from Object.)
Public method IsDescendantOf
Checks if an item is a descendant of a given parent item.
(Overrides Tree..::IsDescendantOf(Int32, Int32).)
Public method IsFolder
Tests if an item is a folder
(Overrides Tree..::IsFolder(Int32).)
Public method IsMemberOfAnySubTree
Returns true if the item is a member of any of the given subtrees.
Public method IsMemberOfSubTree
Returns true if the item is a member of the given subtree.
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
(Inherited from Tree.)
Public method RemoveBranch
Removes an item and all its children from the tree.
(Inherited from Tree.)
Public method RemoveBranch
Removes an item and all its children from the tree.
(Inherited from Tree.)
Public method RemoveItem
Remove a single item from the tree. Throws a TreeHierarchyException when the item has any children.
(Inherited from Tree.)
Public method RemoveItem
Remove an item from the tree.
(Inherited from Tree.)
Public method SortByLevel
Sort the list of nodes by their level
(Inherited from Tree.)
Public method ToArray
Returns an array of tree items
(Inherited from Tree.)
Public method ToArray
Returns an array of tree items
(Inherited from Tree.)
Public method ToIntList
Returns an IntList containing the enumerated nodes.
(Inherited from Tree.)
Public method ToIntList
Returns an IntList containing the enumerated nodes.
(Inherited from Tree.)
Public method ToString (Inherited from Object.)
Public method ToString
Returns a string representation of this Tree
(Inherited from Tree.)
Public method ToString
Returns a string representation of this Tree
(Inherited from Tree.)
Public method ToString
Returns a string representation of this Tree
(Inherited from Tree.)
Public method ToString
Returns a string representation of this Tree
(Inherited from Tree.)

Protected Methods

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

See Also

Advanced