C# 클래스 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.
상속: ITreeModel
파일 보기 프로젝트 열기: zhuangyy/Motion

공개 메소드들

메소드 설명
FindNode ( TreePath path ) : Node
GetChildren ( TreePath treePath ) : System.Collections.IEnumerable
GetPath ( Node node ) : TreePath
IsLeaf ( TreePath treePath ) : bool
OnStructureChanged ( TreePathEventArgs args ) : void
TreeModel ( ) : System

비공개 메소드들

메소드 설명
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

메소드 상세

FindNode() 공개 메소드

public FindNode ( TreePath path ) : Node
path TreePath
리턴 Node

GetChildren() 공개 메소드

public GetChildren ( TreePath treePath ) : System.Collections.IEnumerable
treePath TreePath
리턴 System.Collections.IEnumerable

GetPath() 공개 메소드

public GetPath ( Node node ) : TreePath
node Node
리턴 TreePath

IsLeaf() 공개 메소드

public IsLeaf ( TreePath treePath ) : bool
treePath TreePath
리턴 bool

OnStructureChanged() 공개 메소드

public OnStructureChanged ( TreePathEventArgs args ) : void
args TreePathEventArgs
리턴 void

TreeModel() 공개 메소드

public TreeModel ( ) : System
리턴 System