JVCL Help:TJvCustomItemViewer.IndexOf

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

Search in JVCL Help

 
Search in all projects
 

Summary

Returns the index of the first occurrence in the list of a specified item.


Pascal

 functionIndexOf(Item: TJvViewerItem): Integer;


Parameters

Parameters Description
Item: TJvViewerItem The item to find.


Return Value

The index of the item if found or -1 if Item is not in the Items array.


Description

Call IndexOf to get the index for an item in the Items array. The first item in the array has index 0, the second item has index 1, and so on.
If an item is not in the list, IndexOf returns -1. If an item appears more than once in the list, IndexOf returns the index of the first appearance.


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