JVCL Help:IJvDataConsumerViewList.SubItem@IJvDataItem@Integer

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Retrieve a reference to a child item of a given item.


Pascal

 functionSubItem(Parent: IJvDataItem; Index: Integer): IJvDataItem; overload;
functionSubItem(Parent: Integer; Index: Integer): IJvDataItem; overload;


Parameters

Parameters Description
Parent: IJvDataItem Either a reference to the parent item or a 0-based index in the view list of the parent item. Allowed values for the index version ranges from 0 to Count-1.
Index: Integer 0-based index of the child item to retrieve.


Description

SubItem retrieves a reference to the specified child item of the specified parent item. The two versions of this method allow to specify the parent either as a data item or as a 0-based index in the view list. If the parent item could not be found either an exception is raised or a nil pointer is returned (depends on the implementer). If the item has no children or the index is out of range either an exception is raised or a nil pointer is returned (depends on the implementer). Most implementers will choose to return a nil pointer in this case, as there's no real way to tell the number of child items an item has.


See Also

IJvDataConsumerViewList.SubItemIndex


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