SlotsPainted

View as Markdown

Definition

Indicates the number of index slots in which bars are painted within the chart canvas area. This covers the visible portion of the chart only, and does not include historical painted bars outside of the visible area.

Property Value

An int representing the number of index slots in which bars are painted.

Syntax

\<chartcontrol\>.SlotsPainted

Examples

1protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
2{
3 int painted = chartControl.SlotsPainted;
4
5 // Print the number of bars painted on the visible chart canvas
6 Print(painted);
7}

In the image below, SlotsPainted reveals that there are 17 bars painted on the chart canvas.

ChartControl_SlotsPainted