TreeNode::FirstChild

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.

 

Description

The first child of the TreeNode.

Syntax

 FirstChild()

Parameters

Return

TreeNode

Examples

import PyOrigin
mat = PyOrigin.FindMatrixSheet('Mbook1')
print('MatrixSheet : ', mat.GetName())

trMat = mat.GetTheme()
trChild = trMat.FirstChild()
while(trChild.IsValid()):
    print('TreeName : ',trChild.GetName())
    trChild = trChild.NextSibling()