Hide Comments
Hide Comments

TRSEQChartValues.Items[Integer] Property

Comments (0)

Lists the values in the chart. Use Items to access individual value in the collection. The value of the Index parameter corresponds to the Index property of RSChartPanel|TRSChartValue . It represents the position of the value in the collection.

The Items property is the default property for the class. You can access this property with the abbreviation Values[index], which is equivalent to Values.Items[index].
 
 

Namespace: RSCharts

expandingSyntax

Delphi

public
  property Items[Index: Integer]: TRSEQChartValue read GetItem write SetItem; default;
 

Parameters

Index

Type: Integer

Property Value

Type: TRSEQChartValue

expandingExamples

The following example creates a string list displaying the captions and values for all the values in the chart.

Delphi

var
   i: Integer;
   Strs: TStringList;
 begin
   Strs := TStringList.Create;
   for i := 0 to Chart1.Values.Count - 1 do
     Strs.AddObject(Chart1.Values[i].DisplayName, Chart1.Values[i]);
 end;

noteNote

Note that the AssignTo method already does this for you so this is an equivalent code block:

Delphi

var
   Strs: TStringList;
 begin
   Strs := TStringList.Create;
   Strs.Assign(Chart1.Values);
 end;

expandingSee Also

Comments (0)

RiverSoftAVG Charting Component Suite (RCCS) © 2005-2015, Thomas G. Grubb