Removes a resource from the tree
Source position: resourcetree.pp line 61
public function TResourceTreeNode.Remove( |
aType: TResourceDesc; |
aName: TResourceDesc |
):TAbstractResource; overload; |
aType: TResourceDesc; |
aName: TResourceDesc; |
const aLangID: TLangID |
):TAbstractResource; overload; |
aType |
|
The type of the resource to remove |
aName |
|
The name of the resource to remove |
The removed resource, or nil if not found
aType |
|
The type of the resource to remove |
aName |
|
The name of the resource to remove |
aLangID |
|
The language ID of the resource to remove |
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). |
|
Adds a new resource to the tree |