This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Checks if an item is a descendant of a given parent item.

Namespace: Smartsite.Tools
Assembly:  Smartsite.Tools (in Smartsite.Tools.dll)

Syntax

C#Copy imageCopy Code
public virtual bool IsDescendantOf(
	int childNumber,
	int parentNumber
)
Visual Basic (Declaration)Copy imageCopy Code
Public Overridable Function IsDescendantOf ( _
	childNumber As Integer, _
	parentNumber As Integer _
) As 

Parameters

childNumber
Int32
Number of the item for which descendancy is tested
parentNumber
Int32
Number of the parent item

Return Value

true if the item is a descendant of the parent, false otherwise

See Also

Tree Class
Smartsite.Tools Namespace
Advanced