Show/Hide Toolbars

RiverSoftAVG Products Help

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

TRSChartInChartValues.Add(TRSCustomChartClass,TRSRect,TRSShapeStyle,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 dimensions (Top, Left, Width, and Height), 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



Type: TRSCustomChartClass


Type: TRSRect


Type: TRSShapeStyle


Type: String


Type: TCanvasColor


Type: Integer

Return Value

Type: TRSChartInChartValue

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb