control.Region(n).LabelAxis.LabelLastIndex

Type:Long
Purpose:Set/Get the index of the last label within the labels block of a label axis.
Default:-
Accessible:Runtime
Remarks:

With this function scrolling the labels (in conjunction with a huge data amount) is very easy. You can add all labels at once (e.g. reading them from a file), then setting the range of the labels to be shown while your user scrolls through the chart.

Note: If this property and property LabelFirstIndex are -1, all labels will be excluded, if both properties are 0, a previously defined range gets anulled, i.e. all labels will be included.

Example:RMChartX1.AddRegion
' Add a label axis to the region:
RMChartX1.Region(1).AddLabelAxis
' Add the labels for the axis:
RMChartX1.Region(1).LabelAxis.Labelstring="1998*1999*2000*2001*2002*2003*2004*2005*2006*2007"
' the label axis has only five columns,
' so show initially only the first 5 labels
RMChartX1.Region(1).LabelAxis.LabelFirstIndex = 1
RMChartX1.Region(1).LabelAxis.LabelLastIndex = 5
..
..
.. ' Later, show the next 5 labels:
RMChartX1.Region(1).LabelAxis.LabelFirstIndex = 6
RMChartX1.Region(1).LabelAxis.LabelLastIndex = 10