C# Класс Open.Core.TreeNode

Represents a node within a tree data-structure.
Наследование: ModelBase, ITreeNode, IDisposable
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
FireAddingChild void
FireChildAdded void
FireChildRemoved void
FireChildSelectionChanged void
FireChildrenChanged void
FireClick void
FireRemovingChild void
FireSelectionChanged void
FromDictionary TreeNode
GetRoot ITreeNode
IsDescendent bool
OnChildSelectionChanged void
SetParent void
ToDictionary System.Collections.Dictionary

Открытые методы

Метод Описание
AddChild ( ITreeNode node ) : void
ChildAt ( int index ) : ITreeNode
ClearChildren ( ) : void
Contains ( ITreeNode node ) : bool
ContainsDescendent ( ITreeNode node ) : bool
FromJson ( string json, TreeNodeFactory factory ) : TreeNode

Creates a new instance of the node from JSON.

InsertChild ( int index, ITreeNode node ) : void
RemoveChild ( ITreeNode node ) : void
ToJson ( ) : string
ToString ( ) : string

Защищенные методы

Метод Описание
OnDisposed ( ) : void
OnIsSelectedChanged ( ) : void

Invoked after the 'IsSelected' property changes.

SerializingJson ( System.Collections.Dictionary node ) : void

Allows deriving classes to suppliment the dictionary used for JSON serialization.

Use this to add custom properties only. Do not worry about the Children collection.

Приватные методы

Метод Описание
FireAddingChild ( TreeNodeEventArgs e ) : void
FireChildAdded ( TreeNodeEventArgs e ) : void
FireChildRemoved ( TreeNodeEventArgs e ) : void
FireChildSelectionChanged ( ) : void
FireChildrenChanged ( ) : void
FireClick ( ) : void
FireRemovingChild ( TreeNodeEventArgs e ) : void
FireSelectionChanged ( ) : void
FromDictionary ( System.Collections.Dictionary dic, TreeNodeFactory factory ) : TreeNode
GetRoot ( ) : ITreeNode
IsDescendent ( ITreeNode parent, ITreeNode node ) : bool
OnChildSelectionChanged ( object sender, EventArgs e ) : void
SetParent ( ITreeNode node, ITreeNode value ) : void
ToDictionary ( ) : System.Collections.Dictionary

Описание методов

AddChild() публичный Метод

public AddChild ( ITreeNode node ) : void
node ITreeNode
Результат void

ChildAt() публичный Метод

public ChildAt ( int index ) : ITreeNode
index int
Результат ITreeNode

ClearChildren() публичный Метод

public ClearChildren ( ) : void
Результат void

Contains() публичный Метод

public Contains ( ITreeNode node ) : bool
node ITreeNode
Результат bool

ContainsDescendent() публичный Метод

public ContainsDescendent ( ITreeNode node ) : bool
node ITreeNode
Результат bool

FromJson() публичный статический Метод

Creates a new instance of the node from JSON.
public static FromJson ( string json, TreeNodeFactory factory ) : TreeNode
json string The JSON string to parse.
factory TreeNodeFactory The factory method for creating new nodes.
Результат TreeNode

InsertChild() публичный Метод

public InsertChild ( int index, ITreeNode node ) : void
index int
node ITreeNode
Результат void

OnDisposed() защищенный Метод

protected OnDisposed ( ) : void
Результат void

OnIsSelectedChanged() защищенный Метод

Invoked after the 'IsSelected' property changes.
protected OnIsSelectedChanged ( ) : void
Результат void

RemoveChild() публичный Метод

public RemoveChild ( ITreeNode node ) : void
node ITreeNode
Результат void

SerializingJson() защищенный Метод

Allows deriving classes to suppliment the dictionary used for JSON serialization.
Use this to add custom properties only. Do not worry about the Children collection.
protected SerializingJson ( System.Collections.Dictionary node ) : void
node System.Collections.Dictionary The dictionary representing the node to process.
Результат void

ToJson() публичный Метод

public ToJson ( ) : string
Результат string

ToString() публичный Метод

public ToString ( ) : string
Результат string