Link Search Menu Expand Document

STreeItem.FindItem Method

Explanation Recursively searches for items in its own child and returns the accessor for the first item found.
It is not included in the search target.
Call format item.FindItem( data [, option ] )
Return value An STreeItem object that serves as an accessor to the first item found.
If it cannot be found, it returns null.
Arguments data Specify the character string to be searched.
Returns an object with properties that match this value.
Which property to compare with is specified by option.
option Specify the property to be searched.
Specify a combination of the following constants.
The default is STreeItem.FIND_VALUE.
If 0 is specified, null is returned as the return value.
Constant Description
STreeItem.FIND_TITLE Compare data and Title properties
STreeItem.FIND_VALUE Compare data and Value properties
Exception EXT-12 Invalid accessor
Example of use
    var foundItem = STree1.RootItem.FindItem("abc");
    if (foundItem != null) {
        MessageBox("タイトルが'abc'のアイテムが見つかりました。");
    }
    
Related item FindItems method