2.2.4.8.24 DataPlot::GetSymbol

Description

Get index of the plot symbol in the symbol gallery.

Syntax

int GetSymbol( )

Parameters

None

Return

An Integer value which is the index of current symbol for this DataPlot.

Examples

void DataPlot_GetGetSymbol_Ex1()
{
	//make sure there exists a graph with dataplots on it before running this code.
	GraphLayer gl = Project.ActiveLayer();
	if ( gl )
	{
		DataPlot dp = gl.DataPlots(0); //get the first dataplot on graphlayer
		if ( dp )
		{
			int nSymbol = dp.GetSymbol(); //get index value of Integer, which stands for the Symbol property of the DataPlot
			if ( nSymbol < 0 )
				printf("DataPlot is not a valid object");
			else
				printf("DataPlot has Symbol value of %d\n", nSymbol);
		}
	}
}

Remark

Use this method the get current symbol of one dataplot.

See Also

DataPlot::SetSymbol

Header to Include

origin.h