XYZRange::GetZColumn

Description

To get Z column of XYZRange

Syntax

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

Parameters

col
[output]the Z 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 Z column of XYZRange.
void XYZRange_GetZColumn_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 colZ;
        int nIndex = 0;
        xyzData.GetZColumn(colZ, nIndex);
    }    
}

Remark

See Also

XYZRange::GetXColumn, XYZRange::GetYColumn

Header to Include

origin.h