AB_AverageCells (Function)
The AB_AverageCells function returns the average number of ActivityBar cells per row for the current bar.
Syntax
AB_AverageCells(Side);
Returns (Double)
The average number of ActivityBar cells on the specified Side(s) of the current bar, otherwise, returns a 0 if no cells are found.
Parameters
| Name | Type | Description |
| Side | Numeric | Sets the side of the ActivityBar that will be averaged; options are LeftSide, RightSide, or 2 for both sides. |
Remarks
The value returned by the function can be calculated over the entire ActivityBar, or it can be restricted to either side with the Side input.
Example
Assigns to Value1 the average number of cells per row on both sides of the current bar:
Value1 = AB_AverageCells(2);
Assigns to Value2 the average number of cells per row on the right side of the current bar:
Value2 = AB_AverageCells(RightSide);