RTreeView.Model


public property Model

Prototype:

Read/Write Model[=MODEL_TREEVIEW | MODEL_LISTVIEW]

Description:

Sets the model used by the tree view. If the model is MODEL_LISTVIEW a item will not be allowed to have children. Also, you should never use the AddChild, InsertChild, ExpandAll, CollapseAll, Expand andCollapse functions. Those functions are available only when the model is set to MODEL_TREEVIEW. When set to MODEL_TREEVIEW an item can have children.

Note: Is mandatory to set this property BEFORE you start adding items or columns into the tree view. Once a tree view contains columns or items, you should NOT change this property. Failing to do so will result in unpredictable behavior of your application.

Return value:

Returns the model used by the tree view.