DataObjectBase::x0

ClassName

DataObjectBase

AccessType

public

Name

x0

Declaration

double x0

Remark

Examples

void    DataObjectBase_x0_ex1()
{
    Worksheet wks = Project.ActiveLayer();
 
    if (!wks)
        return;
 
    Column col(wks, 0);
 
    double dX0 = 0.5;
    double dXInc = 0.5;
 
    string strXUnits = "Sampling Units";
    string strXLongName = "Long Name";
    if( col.SetEvenSampling(dX0, dXInc, strXUnits, strXLongName, NULL, true) )
    {
        printf("Sampling is succesfully set into Column %s .\n", col.GetName());
        printf("%0.2f\n", col.x0);
    }
}

Description

For Column or DataPlot that has been set with SetEvenSampling, the X value of the 1st

row. NANUM if not applicable.

Header to Include

origin.h

See Also

DataObjectBase::xInc

Reference