Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSFMXCharts > FMX.RS.Charts > Classes > TRSChartInChartValues > Methods

TRSChartInChartValues.Add(TRSCustomChartClass,TRSRect,TRSShapeStyle,String,TCanvasColor,Integer) Method

Scroll Prev Top Next More

Creates a new FMX.RS.Charts.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: FMX.RS.Charts

Parameters

ChartClass

Type: TRSCustomChartClass

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