TResourceTreeNode.Find¶
Searches for a resource
Declaration¶
Source position: resourcetree.pp line 63
public
function Find(aType: TResourceDesc; aName: TResourceDesc)
: TAbstractResource; overload; overload;
function Find(aType: TResourceDesc; aName: TResourceDesc;
const aLangID: TLangID) : TAbstractResource; overload; overload;
Description¶
This method searches for a resource with the given type and name in the tree. If a language ID is not provided, the first resource found that matches aType and aName is returned.
If no resource is found, nil is returned.
Remark:
This method should only be called on root nodes (instances of TRootResTreeNode).