Click or drag to resize
TreeView Class
Inheritance Hierarchy
SystemObject
  FairyGUIEventDispatcher
    FairyGUITreeView

Namespace: FairyGUI
Assembly: FairyGUI (in FairyGUI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class TreeView : EventDispatcher

The TreeView type exposes the following members.

Constructors
  NameDescription
Public methodTreeView
Initializes a new instance of the TreeView class
Top
Methods
Fields
  NameDescription
Public fieldindent
TreeView每级的缩进,单位像素。
Public fieldtreeNodeCreateCell
当TreeNode需要创建对象的显示对象时回调
Public fieldtreeNodeRender
当TreeNode需要更新时回调
Public fieldtreeNodeWillExpand
当TreeNode即将展开或者收缩时回调。可以在回调中动态增加子节点。
Top
Properties
  NameDescription
Public propertylist
TreeView使用的List对象
Public propertyonClickNode
点击任意TreeNode时触发
Public propertyroot
TreeView的顶层节点,这是个虚拟节点,也就是他不会显示出来。
Top
See Also