C# Class Flood.GUI.Controls.TreeNode

Tree control node.
Inheritance: Control
Datei anzeigen Open project: FloodProject/flood Class Usage Examples

Protected Properties

Property Type Description
m_Title Button
m_ToggleButton Button
m_TreeControl TreeControl

Public Methods

Method Description
AddNode ( string label ) : TreeNode

Adds a new child node.

Close ( ) : void

Closes the node.

ExpandAll ( ) : void

Opens the node and all child nodes.

Open ( ) : void

Opens the node.

TreeNode ( Control parent ) : System

Initializes a new instance of the TreeNode class.

UnselectAll ( ) : void

Clears the selection on the node and all child nodes.

Protected Methods

Method Description
Layout ( Skins skin ) : void

Lays out the control's interior according to alignment, padding, dock etc.

OnClickName ( Control control ) : void

Handler for label click.

OnDoubleClickName ( Control control ) : void

Handler for label double click.

OnToggleButtonPress ( Control control ) : void

Handler for the toggle button.

PostLayout ( Skins skin ) : void

Function invoked after layout.

Render ( Skins skin ) : void

Renders the control using specified skin.

Method Details

AddNode() public method

Adds a new child node.
public AddNode ( string label ) : TreeNode
label string Node's label.
return TreeNode

Close() public method

Closes the node.
public Close ( ) : void
return void

ExpandAll() public method

Opens the node and all child nodes.
public ExpandAll ( ) : void
return void

Layout() protected method

Lays out the control's interior according to alignment, padding, dock etc.
protected Layout ( Skins skin ) : void
skin Skins Skin to use.
return void

OnClickName() protected method

Handler for label click.
protected OnClickName ( Control control ) : void
control Control Event source.
return void

OnDoubleClickName() protected method

Handler for label double click.
protected OnDoubleClickName ( Control control ) : void
control Control Event source.
return void

OnToggleButtonPress() protected method

Handler for the toggle button.
protected OnToggleButtonPress ( Control control ) : void
control Control Event source.
return void

Open() public method

Opens the node.
public Open ( ) : void
return void

PostLayout() protected method

Function invoked after layout.
protected PostLayout ( Skins skin ) : void
skin Skins Skin to use.
return void

Render() protected method

Renders the control using specified skin.
protected Render ( Skins skin ) : void
skin Skins Skin to use.
return void

TreeNode() public method

Initializes a new instance of the TreeNode class.
public TreeNode ( Control parent ) : System
parent Control Parent control.
return System

UnselectAll() public method

Clears the selection on the node and all child nodes.
public UnselectAll ( ) : void
return void

Property Details

m_Title protected_oe property

protected Button,Flood.GUI.Controls m_Title
return Button

m_ToggleButton protected_oe property

protected Button,Flood.GUI.Controls m_ToggleButton
return Button

m_TreeControl protected_oe property

protected TreeControl,Flood.GUI.Controls m_TreeControl
return TreeControl