JVCL Help:IJvDataItem.IsParentOf
JVCL Help: IJvDataItem.IsParentOf Method
Search in JVCL Help
Search in all projectsSummary
Determines if the item is an ancestor of another item.
Pascal
functionIsParentOf(AnItem: IJvDataItem; DirectParent: Boolean = False): Boolean;
Parameters
Parameters | Description |
AnItem: IJvDataItem | The item to check the parent chain of. |
DirectParent: Boolean = False | Flag to control if only the direct parent (Items.Parent) is checked (DirectParent=True), or if the entire parent chain is scanned (DirectParent=False). |
Description
IsParentOf determines if the item is an ancestor of the specified item. If the item specified by AnItem has this item as its parent the function will return True. If this is not the case but DirectParent is set to False, the entire parent chain is scanned. If during this iterating process this item is indeed found, the function will return True. If either DirectParent was set to True or this item is not an ancestor of the specified item the function will return False.
See Also
IJvDataItem.Items, IJvDataItems.Parent
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page