2.1.14.1.22 page_graph_get_info_tree


Description

get info tree from a graph layer by looping through all the data plots in the given layer and find their corresponding workbook info tree

Syntax

bool page_graph_get_info_tree( GraphLayer gl, TreeNode & trNode )

Parameters

gl
[input] GraphicLayer to obtain info tree from
trNode
[output] TreeNode to receive the Info tree

Return

true for success

Examples

EX1

//For this example to run, make sure the active window is a graph window
void test_page_graph_get_info_tree()
{
    Tree tr;
    GraphLayer gl = Project.ActiveLayer();
    if(page_graph_get_info_tree(gl, tr))
        out_tree(tr);
}

Remark

See Also

Header to Include

origin.h

Reference