SetDataMarkers
Set begin and end indices of data markers present on the data plot
int SetDataMarkers( const vector<int>& vnBegin, const vector<int>& vnEnd, const vector<int>& vnIndices = NULL, BOOL bUndo = FALSE );
Return 0 if no error, else return -1
EX1
//Before run the following code, add data markers on the active graph layer. void DataPlot_SetDataMarkers_ex1() { GraphLayer gl = Project.ActiveLayer(); if( gl ) { DataPlot dp = gl.DataPlots(); if( dp ) { vector<int> vnBegin = {5,10}; vector<int> vnEnd = {20,25}; vector<int> vnIndices = {1, 0}; BOOL bUndo = TRUE; int nRet = dp.SetDataMarkers(vnBegin, vnEnd, vnIndices, bUndo); if(nRet==0) out_str("Set data markers success!"); } } }
DataPlot::GetDataMarkers
origin.h