Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCharting > RSCharts > Classes > TRSChartInChartValues > Methods

TRSChartInChartValues.Add(TRSCustomChartClass,TRSChartValueType,String,TCanvasColor,Integer) Method

Scroll Prev Top Next More

Creates a new RSCharts.TRSChartInChartValue instance and adds it to the Items array. The new instance is initialized with the X, Style, Caption, Color, and ImageIndex parameters. The ChartClass parameter specifies the chart class to create for the SubChart . The TRSChartInChartValue will ensure the chart is freed. Call Add to create a sub-chart value in the collection. No SubChart is actually created but must be assigned later. The new value is placed at the end of the Items array, or, if the collection is Sorted, placed at the sorted point in the collection (based on a default value (0)).

Add returns the new sub-chart value.

Note that because every time you change a value an event is called, it is faster to add and initialize a value using the overloaded Add method.
 

Namespace: RSCharts

Parameters

ChartClass

Type: TRSCustomChartClass

X

Type: TRSChartValueType

Caption

Type: String

Color

Type: TCanvasColor

ImageIndex

Type: Integer

Return Value

Type: TRSChartInChartValue

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb