LastSlotPainted

View as Markdown

Definition

Indicates the most recent (last) slot index of the Data Series on the chart, regardless if a bar is actually painted in that slot.

LastSlotPainted differs from ChartBars.ToIndex, which returns the last index containing a bar painted in the visible area of the chart.

Property Value

A int representing the most recent (last) slot index on the chart.

Syntax

\<chartcontrol\>.LastSlotPainted

Examples

1protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
2{
3 int lastSlot = chartControl.LastSlotPainted;
4
5 // Print the index of the last slot on the chart
6 Print(lastSlot);
7}