AddDataMarkers
Add data markers onto the data plot and specify the begin and end indices
int AddDataMarkers(const vector<int>& vnBegin, const vector<int>& vnEnd, BOOL bInvalidate = TRUE, BOOL bUndo = FALSE);
Return 0 if no error, else return -1
EX1
//Add two data markers to the active graph layer. void DataPlot_AddDataMarkers_ex1() { GraphLayer gl = Project.ActiveLayer(); if( gl ) { DataPlot dp = gl.DataPlots(); if( dp ) { vector<int> vnBegin = {5,10}; vector<int> vnEnd = {20,25}; BOOL bInvalidate = TRUE; BOOL bUndo = TRUE; int nRet = dp.AddDataMarkers(vnBegin, vnEnd, bInvalidate, bUndo); if( nRet==0) out_str("success!"); } } }
DataPlot::GetDataMarkers, DataPlot::SetDataMarkers
origin.h