Create
Create a DataRangeEx object by a treenode containing data information.
bool Create( TreeNode & tr, bool bOneData = true )
//This example shows how to create a DataRangeEx object by a treenode containing data information. void DataRangeEx_Create_Ex1() { //assume the active workbooka sheet and has two columns before run this code. Worksheet wks = Project.ActiveLayer(); if ( !wks ) { printf("Can not find any active worksheet!"); return; } DataRange dr; dr.Create();//init the object dr.Add("X", wks, 0, 0, -1, 0); dr.Add("Y", wks, 0, 1, -1, 1); Tree trData; dr.GetTree(trData); DataRangeEx drEx; drEx.Create(trData, true); return; }
origin.h