C# Class ZForge.Controls.TreeViewAdv.Tree.TreeModel

Provides a simple ready to use implementation of ITreeModel. Warning: this class is not optimized to work with big amount of data. In this case create you own implementation of ITreeModel, and pay attention on GetChildren and IsLeaf methods.
Inheritance: ITreeModel
Afficher le fichier Open project: zhuangyy/Motion

Méthodes publiques

Méthode Description
FindNode ( TreePath path ) : Node
GetChildren ( TreePath treePath ) : System.Collections.IEnumerable
GetPath ( Node node ) : TreePath
IsLeaf ( TreePath treePath ) : bool
OnStructureChanged ( TreePathEventArgs args ) : void
TreeModel ( ) : System

Private Methods

Méthode Description
FindNode ( Node root, TreePath path, int level ) : Node
OnNodeInserted ( Node parent, int index, Node node ) : void
OnNodeRemoved ( Node parent, int index, Node node ) : void
OnNodesChanged ( TreeModelEventArgs args ) : void

Method Details

FindNode() public méthode

public FindNode ( TreePath path ) : Node
path TreePath
Résultat Node

GetChildren() public méthode

public GetChildren ( TreePath treePath ) : System.Collections.IEnumerable
treePath TreePath
Résultat System.Collections.IEnumerable

GetPath() public méthode

public GetPath ( Node node ) : TreePath
node Node
Résultat TreePath

IsLeaf() public méthode

public IsLeaf ( TreePath treePath ) : bool
treePath TreePath
Résultat bool

OnStructureChanged() public méthode

public OnStructureChanged ( TreePathEventArgs args ) : void
args TreePathEventArgs
Résultat void

TreeModel() public méthode

public TreeModel ( ) : System
Résultat System