Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

(C++ VCL) ClearChart

 

TChart code snippet to clear all series .

 

*        View the code of 'ClearChart' in plain text

 

 

#include <cassert>

#include <Chart.hpp>

 

//From http://www.richelbilderbeek.nl/CppClearChart.htm

void ClearChart(TChart * const c)

{

assert(c); // c must be an initialized pointer

const int sz = c->SeriesCount();

for (int i=0; i!=sz; ++i)

{

c->Series[i]->Clear();

}

}

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.