Remove one polyline object by index.
int RemovePolyline( int nIndex )
Number of points of the polyliine or -1 for error
EX1
void RemovePolyline_ex1() { //Assumes current project has some polylines in PolyPolylineGraphObject selected(you can select multiple polylines by shift key) foreach(OriginObject obj in Selection.Objects) { PolyPolylineGraphObject plobj; plobj = obj; if( !plobj ) continue; vector<int> vSelection; int nCount = plobj.GetInternalSelection(vSelection); vSelection.Sort(SORT_DESCENDING); for(int ii = 0; ii < nCount; ii++) plobj.RemovePolyline( vSelection[ii] ); GraphLayer gl; plobj.GetParent(gl); if(gl) gl.GetPage().Refresh(true); } }
PolyPolylineGraphObject::AddPolyline
origin.h