2.2.4.48.8 XYRange::MakeFullRowRange

Description

Make a new XYRange with full row range from existing one.

Syntax

BOOL MakeFullRowRange( XYRange & xy )

Parameters

xy
[output] a new XYRange with full row range.

Return

TRUE if success

Examples

EX1

//Output a new XYRange description with full row range from existing one. 
void XYRange_MakeFullRowRange_ex1()
{
	//assume there exists an worksheet with at least two columns
	Worksheet wks = Project.ActiveLayer();
	if ( wks )
	{
		XYRange xyRange;
		xyRange.Add(wks, 0, "X", 0, 0, 4);
		xyRange.Add(wks, 1, "Y", 1, 0, 4); //four data in each sub range
		string strDescription = xyRange.GetDescription();
		out_str(strDescription);
		XYRange xyCloned;
		xyRange.MakeFullRowRange(xyCloned);
		strDescription = xyCloned.GetDescription();
		out_str(strDescription);
		return;
	}
}

Remark

See Also

XYRange::MakePlot

Header to Include

origin.h