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



CountAnnos


Unit: SDL_rchart
Class: TContourPlot
Declaration: function CountAnnos (Tag: integer; TagMask: longword; ItemClass: integer; ItemKind: TrcItem): integer;

The function CountAnnos scans through all annotations and returns the number of items which match the search criteria (parameters Tag, ItemClass and ItemKind). A match occurs if the masked tag (masked by TagMask), the item class and the kind of the item match the corresponding criteria.

The masking of the tag is accomplished by the parameter TagMask. For search comparison the tags of the annotation items are ANDed bitwise by TagMask before the result is compared to Tag.

Each of the three parameters can be disabled as a matching criterion by assigning the following values:

Tag set TagMask to $00000000
ItemClass set ItemClass to 255
ItemKind set ItemKind to tkEverything

Example: The following statement returns the number of text annotations in the variable nta:
nta := CountAnnos (0, 0, 255, tkText);



Last Update: 2017-Okt-21