To get X column of XYZRange
BOOL GetXColumn( Column & col, int nIndex = 0, int* pr1 = NULL, int* pr2 = NULL)
TRUE if success.
EX1
//Get X column of XYZRange. void XYZRange_GetXColumn_Ex1() { Worksheet wks; wks= Project.ActiveLayer(); XYZRange xyzData; if( wks ) { xyzData.Add("X", wks, 0, 0, -1, 0); xyzData.Add("Y", wks, 0, 1, -1, 1); xyzData.Add("Z", wks, 0, 2, -1, 2); Column colX; int nIndex = 0; xyzData.GetXColumn(colX, nIndex); } }
XYZRange::GetYColumn, XYZRange::GetZColumn
origin.h