Show/Hide Toolbars

RiverSoftAVG Products Help

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

TRSChartInChartValues.Add(TRSChart,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 Chart parameter specifies the SubChart to use for this value. The Chart object is not copied. The TRSChartInChartValue will ensure the chart is freed except when the SubChart has its Owner property set. The new instance is initialized with the dimensions (Top, Left, Width, and Height), Style, Caption, Color, and ImageIndex parameters. 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

Chart

Type: TRSChart

ARect

Type: TRSRect

Style

Type: TRSShapeStyle

Caption

Type: String

Color

Type: TCanvasColor

ImageIndex

Type: Integer

Return Value

Type: TRSChartInChartValue

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb