AB_CellCount (Function)

image\trumpet2.gif Disclaimer

The AB_CellCount function counts the number of cells on one or both sides of an ActivityBar.

Syntax

AB_CellCount(Side)

Returns (Integer)

The number of ActivityBar cells on the specified Side(s) of the current bar.

Parameters

Name Type Description
Side Numeric Sets the side of the ActivityBar on which the cells will be counted; options are LeftSide, RightSide and 2 for both sides.

Example

Assigns Value1 the number of cells that are drawn on both sides of the current bar:

Value1 = AB_CellCount(2);

Assigns Value2 the average number of cells on the right side of the bars of the last 3 bars:

Value2 = Average(AB_CellCount(RightSide), 3);