The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Unit: SDL_rchart
Class: TSmithChart
Declaration: function CountAnnoByClass (ClList: array of byte): integer;

The method CountAnnoByClass counts the annotation elements according to their item class. The parameter ClList is an open array containing the list of classes which should be counted. The functions returns the sum of all graphic elements which have one of the item classes specified in ClList.

Please note that class 255 never exists (the class number 255 is declared as place holder for "any class" in certain search methods). If you want to obtain the total number of annotation elements you should use the property NumAnnos.

Example: The statement cnt := SC1.CountAnnoByClass ([2,3,11]); returns the sum of the number of classes 2, 3 and 11 of the chart instance SC1 to the variable cnt.

Last Update: 2017-Okt-21