Vcl.Samples.DirOutln.TDirectoryOutline.FindIndex
Delphi
function FindIndex(RootNode: TOutLineNode; SearchName: TFileName): Longint;
C++
int __fastcall FindIndex(Vcl::Outline::TOutlineNode* RootNode, System::Sysutils::TFileName SearchName);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.Samples.DirOutln.pas Vcl.Samples.DirOutln.hpp |
Vcl.Samples.DirOutln | TDirectoryOutline |
Description
Searches for a directory in the subtree of a specified root node.
FindIndex takes a TOutlineNode and searches in its descendants for the directory specified in SearchName. FindIndex considers only the directories that are visible in the outline, therefore, the root node must be Expanded.