CimData.Count (property)

Gets and sets the data value vector count.
Syntax: long = object.Count
object.Count = long
Description: CimData.Count contains the number of data values in the vector.


This property changes the size of either the X or Y vector, whichever kind it represents. CimPairData, the interface that contains both the X and Y vectors, also has a property called Count. Its value contains the smallest Count in its X and Y vectors. In other words, if you have a CimPairData object that has an X vector with a Count of 5 and a Y vector with a Count of 10, the CimPairData object has a Count of 5. This means that the series that owns the CimPairData object displays the first 5 pairs of X and Y data values.


The following CimView script excerpt changes the size of the X vector on a series called Series 1:
cimOleObj.Series("Series 1").Data.X.Count = 500