Go back to Richel Bilderbeek's homepage.

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

 

 

 

 

 

(C++) ClearChart

 

ClearChart is a TChart code snippet to clear all series.

 

#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.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml