C# Class Nexus.UI.Controls.XmlTreeNode

A node in an XmlTreeView.
Inheritance: System.Windows.Forms.TreeNode
Show file Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
LoadChildren ( ) : void

Creates child tree nodes for each child of the XML node represented by this tree node.

XmlTreeNode ( XmlNode p_xndXmlNode ) : System.Windows.Forms

A simple constructor that initializes the object with the given values.

XmlTreeNode ( XmlNode p_xndXmlNode, bool p_booHideChildren ) : System.Windows.Forms

A simple constructor that initializes the object with the given values.

Private Methods

Method Description
OwnerDocument_NodeChanged ( object sender, XmlNodeChangedEventArgs e ) : void

Handles the XmlDocument.NodeChanged event of the document being represented by the tree view to which this node belongs.

This reformats the tree node to reflect the changes.

OwnerDocument_NodeInserted ( object sender, XmlNodeChangedEventArgs e ) : void

Handles the XmlDocument.NodeInserted event of the document being represented by the tree view to which this node belongs.

This reformats the tree node if the XML node that was inserted is a child of the XML node represented by this node.

OwnerDocument_NodeRemoved ( object sender, XmlNodeChangedEventArgs e ) : void

Handles the XmlDocument.NodeRemoved event of the document being represented by the tree view to which this node belongs.

This reformats the tree node if the XML node that was removed was a child of the XML node represented by this node.

Method Details

LoadChildren() public method

Creates child tree nodes for each child of the XML node represented by this tree node.
public LoadChildren ( ) : void
return void

XmlTreeNode() public method

A simple constructor that initializes the object with the given values.
public XmlTreeNode ( XmlNode p_xndXmlNode ) : System.Windows.Forms
p_xndXmlNode System.Xml.XmlNode The XML node to represent with this tree node.
return System.Windows.Forms

XmlTreeNode() public method

A simple constructor that initializes the object with the given values.
public XmlTreeNode ( XmlNode p_xndXmlNode, bool p_booHideChildren ) : System.Windows.Forms
p_xndXmlNode System.Xml.XmlNode The XML node to represent with this tree node.
p_booHideChildren bool Whether the node should generate child tree nodes for /// the children of the XML node being represented by this tree node.
return System.Windows.Forms