Skip to content

TResourceTreeNode.Remove

Removes a resource from the tree

Declaration

Source position: resourcetree.pp line 61

public 
function Remove(aType: TResourceDesc; aName: TResourceDesc)
                : TAbstractResource;  overload; overload;

function Remove(aType: TResourceDesc; aName: TResourceDesc; 
               const aLangID: TLangID) : TAbstractResource;  overload; overload;

Description

This method searches for the specified resource and removes it from the tree. If a language ID is not provided, the first resource found that matches aType and aName is returned. The removed resource is then returned.

If no resource is found, nil is returned.

Remark:

This method should only be called on root nodes (instances of TRootResTreeNode).

See also

Name Description
TResourceTreeNode.Add Adds a new resource to the tree