Hide Comments
Hide Comments

TRSCustomChartPanel.OnGetLegendStrings Property

Comments (0)

Occurs when the Legend is compiling the strings - the  Lines - that compose the legend. The event occurs before the Legend fills its Lines property. Use the OnGetLegendStrings event to add extra text to the top of the legend.

Namespace: RSChartPanel

expandingSyntax

Delphi

public
  property OnGetLegendStrings: TGetStringsEvent read FOnGetLegendStrings write FOnGetLegendStrings;
 

Property Value

Type: TGetStringsEvent

expandingExamples

The following code adds a couple of lines to the top of the legend:

Delphi

procedure TForm1.RSChartPanel1GetLegendStrings(Sender: TObject;
   const Strings: TStrings);
 begin
      Strings.Add('Is not this an awesome');
      Strings.Add('Legend?');
 end;

expandingSee Also

Comments (0)

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