Skip to content

TResourceTreeNode.Add

Adds a new resource to the tree

Declaration

Source position: resourcetree.pp line 57

public 
procedure TResourceTreeNode.Add(aResource: TAbstractResource);  virtual
                               ;  abstract;

Description

This method adds a new resource to the tree, creating all needed sub nodes

Remark:

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

Errors

If a resource with the same type, name and language ID already exists, an EResourceDuplicateException exception is raised.

See also

Name Description
TResourceTreeNode.Remove Removes a resource from the tree