[Overview][Classes][Index] Reference for unit 'resourcetree' (#fcl-res)

TResourceTreeNode.Add

Adds a new resource to the tree

Declaration

Source position: resourcetree.pp line 50

public procedure TResourceTreeNode.Add(

  aResource: TAbstractResource

); virtual; abstract;

Arguments

aResource

  

The resource to add

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

TResourceTreeNode.Remove

  

Removes a resource from the tree


Documentation generated on: May 14 2021