# IIntfTree/IStrTree/ITree

## Unit

DCL_intf

## Inheritance

Derived from IIntfCollection/IStrCollection/ICollection

## Methods

`TTraverseOrder = (toPreOrder, toOrder, toPostOrder);`

### IIntfTree

`function GetTraverseOrder: TTraverseOrder;
procedure SetTraverseOrder(Value: TTraverseOrder);
property TraverseOrder: TTraverseOrder read GetTraverseOrder write SetTraverseOrder;
`

### IStrTree

`function GetTraverseOrder: TTraverseOrder;
procedure SetTraverseOrder(Value: TTraverseOrder);
property TraverseOrder: TTraverseOrder read GetTraverseOrder write SetTraverseOrder;
`

### ITree

`function GetTraverseOrder: TTraverseOrder;
procedure SetTraverseOrder(Value: TTraverseOrder);
property TraverseOrder: TTraverseOrder read GetTraverseOrder write SetTraverseOrder;
`

## Description

A tree is hierarchical container with parents/childs concepts.

Method | Description
--- | ---
GetTraverseOrder | Return the current traverse order (PreOrder, Order or PostOrder) of the tree. The traverse order is used for iterators.
SetTraverseOrder | Set the traverse order (PreOrder, Order or PostOrder) of the tree. The traverse order is used for iterators.

## Implemented By

- BinaryTree