XYZRange::GetXColumn

Contents

Description

To get X column of XYZRange

Syntax

BOOL GetXColumn( Column & col, int nIndex = 0, int* pr1 = NULL, int* pr2 = NULL)

Parameters

col
[output]the X column
nIndex
[input]the data index
pr1
[output]if not NULL, will get row range
pr2
[output]if not NULL, will get row range

Return

TRUE if success.

Examples

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);
    }    
}

Remark

See Also

XYZRange::GetYColumn, XYZRange::GetZColumn

header to Include

origin.h