2.2.4.48.11 XYRange::XYRange

Description

Constructor of XYRange class

Syntax

XYRange( )


XYRange( const DataRange & source )

Parameters

source
[input]Source datarange from which to construct the XYRange.

Return

Examples

EX1

//Get the description of the XYRange.
void XYRange_XYRange_ex1()
{
	//assume there exists an worksheet with at least two columns
	Worksheet wks = Project.ActiveLayer();
	if ( wks )
	{
		DataRange dataRange;
		dataRange.Add(wks, 0, "X", 0, 0, 4);
		dataRange.Add(wks, 1, "Y", 1, 0, 4); //four data in each sub range
		
		XYRange xyCloned(dataRange);
		string strDescription = xyCloned.GetDescription();
		out_str(strDescription);
		return;
	}
}

Remark

See Also

XYRange::GetData, XYRange::SetData

Header to Include

origin.h