Returns whether a DataPlot object represents the same plot as the plot whose index was specified in GetGraphPoints::SetFollowData(). It is only useful when called from within an event method of a derived class.
BOOL IsFollowData(DataPlot& dp);
Returns true if the picking is being performed on the specified DataPlot object. Otherwise it returns false.
class TestGetGraphPoints : public GetGraphPoints
// Constructor to set GraphLayer property.
m_gl = gl;
void OnNewPoint(int nPoint)
// Is the instance set to follow the 1st data plot?
bool bb = IsFollowData(m_gl.DataPlots(0));
printf("Following first data plot? %s\n", bb ? "Yes!" : "No!");
// It is assumed that a graph is active with at least 2 XY data plots.
// Get the active GraphLayer.
GraphLayer gl = Project.GraphPages(-1).Layers(-1);
if( !gl.IsValid() )
// Create an instance of class.
// Follow the 2nd data plot in the layer.
// Pick 5 points.