30+
years serving the scientific and engineering community
Log In
Buy Now
Try Origin for Free
Watch Videos
English
日本語
Deutsch
Toggle navigation
Products
PRODUCTS
Origin
OriginPro
Origin Viewer
All products
Origin vs. OriginPro
What's new in latest version
Product literature
SHOWCASE
Applications
User Case Studies
Video Tutorials
Graph Gallery
Animation Gallery
3D Function Gallery
FEATURES
2D&3D Graphing
Peak Analysis
Curve Fitting
Statistics
Signal Processing
Key features by version
LICENSING OPTIONS
Node-locked(fixed seat)
Concurrent Network (Floating)
Dongle
Academic users
Student version
Commercial users
Government users
Non-Profit users
Why choose OriginLab
Who's using Origin
What users are saying
Published product reviews
Online Store
Get a quote/Ordering
Find a distributor
Apps
Data Import
CSV Connector
Excel Connector
HTML Connector
HDF Connector
NetCDF Connector
Import NMR Data
Import PDF Tables
Google Map Import
Import Shapefile
More...
Graphing
Graph Maker
Correlation Plot
Paired Comparison Plot
Venn Diagram
Taylor Diagram
Volcano Plot
Kernel Density Plot
Chromaticity Diagram
Heatmap with Dendrogram
More...
Publishing
Graph Publisher
Send Graphs to PowerPoint
Send Graphs to Word
Send Graphs to PDF
Send Graphs to OneNote
Movie Creator
Graph Anim
More...
Curve Fitting
Simple Fit
Speedy Fit
Piecewise Fit
Fit ODE
Fit Convolution
Rank Models
Fitting Function Library
Neural Network Regression
Polynomial Surface fit
Global Fit with Multiple Functions
More...
Peak Analysis
Simple Spectroscopy
Peak Deconvolution
Pulse Integration
Align Peaks
Global Peak Fit
PCA for Spectroscopy
2D Peak Analysis
Gel Molecular Weight Analyzer
More...
Statistics
SPC
DOE
Stats Advisor
PCA
RDA
Bootstrap Sampling
Time Series Analysis
Factor Analysis
General Linear Regression
Logistic Regression
SVM Classification
More...
How do Apps work in Origin?
Suggest a New App
Purchase
New Orders
Renew Maintenance
Upgrade Origin
Contact Sales(US & Canada only)
Find a Distributor
Licensing Options
Node-locked(fixed seat)
Concurrent Network (Floating)
Dongle
Academic users
Student version
Commercial users
Government users
Non-Profit users
Why choose OriginLab
Purchasing FAQ
Support
SERVICES
Transfer Origin to new PC
License/Register Origin
Consulting
Training
Renew Maintenance
SUPPORT
Support FAQ
Help Center
Contact Support
Support Policy
DOWNLOADS
Service Releases
Origin Viewer
Orglab Module
Product Literature
Origin Trial
All downloads
VIDEOS
Installation and Licensing
Introduction to Origin
All video tutorials
DOCUMENTATION
User Guide
Tutorials
Python Programming
OriginC Programming
LabTalk Programming
All documentation
Communities
User Forum
User File Exchange
About Us
OriginLab Corp.
News & Events
Careers
Distributors
Contact Us
Contact Us
Log In
All Books
Non-Programming Books
User Guide
Tutorials
Quick Help
Origin Help
Programming Books
X-Function
Origin C
LabTalk Programming
Python
Python (External)
Automation Server
LabVIEW VI
Apps
App Development
Code Builder
License
MOCA
Orglab
2.2.3.17 TreeNode
Contents
1
Name
2
Remark
3
Hierarchy
4
Examples
5
Header to Include
6
Reference
7
Members
8
Property
Name
TreeNode
Remark
Hierarchy
PropertyNode
TreeNode
Tree
ReportBase
Examples
Header to Include
origin.h
Reference
Members
Name
Brief
Example
AddNode
Add a new node.
Examples
AddNumericNode
Creates a new node with the specified name, id and the double value and returns that node.
Examples
AddTextNode
Creates a new node with the specified name, id and the string value and returns that node.
Examples
Clone
Clones a tree node. If bDeep is true, copies the whole branch
Examples
CreateDiff
Construct a new tree that collects all the tree nodes that are different between the two given.
Examples
FindNodeByAttribute
Find a node from a tree by the AttributeName with matching value.
Examples
GetArrayAsString
Get array as string from the node.
Examples
GetAttribute
Get the attribute value of a node with the specified attribute name.
Examples
GetAttributeNames
Get all attribute names from this node
Examples
GetDataRange
Gets a DataRange object from the TreeNode object which was previously saved using SetDataRanges
Examples
GetNode
Find child by name
Examples
GetNodeCount
Get the number of children nodes in the tree node.
Examples
GetNodeFromPath
Get tree node from the specify path.
Examples
GetNodeText
Get a node's text string by allowing custom code page value to convert from Unicode to multibytes. This is needed if the XML node contains a string that is not ascii. For example, Japanese, Chinese, or German strings.
Examples
GetValue
Allows recursive access for getting values a leaf of with a particular tagname of the TreeNode
Examples
InsertNode
Insert a child node.
Examples
IsEmpty
Returns the information on whether the node is empty or not. The node must be valid. The node is considered empty if it has no child nodes or if the value it holds is empty.
Examples
IsValid
Checks if a given node is a valid node or not
Examples
Parent
Find parent.
Examples
Remove
Removes the node that calls this method.
Examples
RemoveAttribute
Removes the attribute of a node.
Examples
RemoveChild
Removes the node with the specified id.
Examples
RemoveChildrenWithPrefix
Removes the node with the specified prefix.
Examples
Replace
Replaces a node in the tree.
Examples
Reset
Removes all the children and value of a node or a tree, and optionally all attributes
Examples
Reverse
Reverse the order of the child nodes
Examples
SetAttribute
Sets the integer value of a node.
Examples
SetCDATA
Ensures that any string set to it will be preserved without modifications when saved into a file.
Examples
SetDataRange
sets a DataRange object to the TreeNode
Examples
SetNodeText
It sets the value of the node as string by assuming the supplied code page (if >= 0) when converting to Unicode.
Examples
SetValue
Allows recursive access for setting values to all the leaves of the TreeNode
Examples
TreeNode
Default constructor
Examples
Property
Name
Brief
Example
Children
Children are all next level's nodes that are direct adjacent to "this" node.
Examples
DataID
Read or write treenode's DataID attribute.
Examples
Enable
Read or write treenode's Enable attribute.
Examples
FirstNode
Read-only. The first child of this node.
Examples
ID
Read or write treenode's NodeID attribute.
Examples
LastNode
Read-only. The last child of this node.
Examples
NextLeaf
Read-only. The next adjacent leaf of this node.
Examples
NextNode
Read-only. The next adjacent node of this node.
Examples
PrevNode
Read-only. The previous adjacent node of this node.
Examples
Show
Read or write treenode's Show attribute.
Examples
tagName
Read-only. Text name of the node.
Examples
Text
Property to read or write text to treenode.
Examples
TypeID
Identifies the data type of the node
Examples
Use
Read or write treenode's Use attribute.
Examples
XML
init treenode from XML string or to get as XML string
Examples
Skip Navigation Links
All Books
Origin C
Origin C Reference
Classes
Composite Data Types
TreeNode
User Guide
Tutorials
Quick Help
Origin Help
X-Function
Origin C
LabTalk Programming
Python
Python (External)
Automation Server
LabVIEW VI
Apps
App Development
Code Builder
License
MOCA
Orglab
Programming
Origin C Programming Guide
Origin C Reference
Examples
Origin Developer Kit
Build Dialogs using HTML and JavaScript
Global Functions
Classes
Macros
Typedef
Struct
Enum
Analysis
Application Communication
Composite Data Types
Internal Origin Objects
System
User Interface Controls
Utility
CategoricalData
CategoricalMap
complex
Curve
curvebase
Dataset
matrix
Matrix
matrixbase
PropertyNode
ReportBase
ReportData
ReportTable
ReportTreeBase
string
Tree
TreeNode
vector
vectorbase
TreeNode::AddNode
TreeNode::AddNumericNode
TreeNode::AddTextNode
TreeNode::Children
TreeNode::Clone
TreeNode::CreateDiff
TreeNode::DataID
TreeNode::Enable
TreeNode::FindNodeByAttribute
TreeNode::FirstNode
TreeNode::GetArrayAsString
TreeNode::GetAttribute
TreeNode::GetAttributeNames
TreeNode::GetDataRange
TreeNode::GetNode
TreeNode::GetNodeCount
TreeNode::GetNodeFromPath
TreeNode::GetNodeText
TreeNode::GetValue
TreeNode::ID
TreeNode::InsertNode
TreeNode::IsEmpty
TreeNode::IsValid
TreeNode::LastNode
TreeNode::NextLeaf
TreeNode::NextNode
TreeNode::Parent
TreeNode::PrevNode
TreeNode::Remove
TreeNode::RemoveAttribute
TreeNode::RemoveChild
TreeNode::RemoveChildrenWithPrefix
TreeNode::Replace
TreeNode::Reset
TreeNode::Reverse
TreeNode::SetAttribute
TreeNode::SetCDATA
TreeNode::SetDataRange
TreeNode::SetNodeText
TreeNode::SetValue
TreeNode::Show
TreeNode::tagName
TreeNode::Text
TreeNode::TreeNode
TreeNode::TypeID
TreeNode::Use
TreeNode::XML
English
|
Deutsch
|
日本語
© OriginLab Corporation. All rights reserved.
×
☐
_
Let's Chat