Unit 'resourcetree' Package
[Overview][Classes][Index] [#fcl-res]

TResourceTreeNode.Add

Adds a new resource to the tree

Declaration

Source position: resourcetree.pp line 57

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: Nov 23 2024