IChartLabel.BackgroundInfo

Fore Syntax

BackgroundInfo: IChartBackgroundInfo;

Fore.NET Syntax

BackgroundInfo : Prognoz.Platform.Interop.Chart.IChartBackgroundInfo;

Description

The BackgroundInfo property determines properties of background fill for a label.

Fore Example

Executing the example requires a regular report with a chart on the report sheet. A unit is added to the report and the UserProc procedure is called from this unit using the hyperlink. The inspector of unit assemblies must contain links to the Chart, Report, Tab and Drawing system assemblies.

Sub UserProc;
Var
    Chart: IChart;
Begin
    Chart := (PrxReport.ActiveReport.ActiveSheet As IPrxTable).TabSheet.Objects.Item(0).Extension As IChart;
    Chart.Series.DisplayLabels := True;
    Chart.Series.DefaultLabel.BackgroundInfo.Color := New GxColor.CreateARGB( 25525500);
End Sub UserProc;

After executing the example the label background color is changed to red.

Fore.NET Example

Executing the example requires a regular report with a chart and an external legend on the report sheet. The .NET assembly is added to the report to handle report events. The OnBeforeOpenReport event is described in the unit of the specified assembly in the EventsClass class. The inspector of unit assemblies must contain links to the Chart, Report, Tab and Drawing system assemblies.

  Public Override Sub OnBeforeOpenReport(Report:IPrxReport; Var Cancel:Boolean);
  Var
    Chart: IChart;
    ColorCl: GxColorClass_2=New GxColorClass_2();
  Begin
    Chart := (Report.ActiveSheet As IPrxTable).TabSheet.Objects.Item[0].Extension As IChart;
    Chart.Series.DisplayLabels := True;
    ColorCl.CreateARGB(25525500);
    Chart.Series.DefaultLabel.BackgroundInfo.Color := ColorCl;
  End Sub OnBeforeOpenReport;

After opening the report, the label background color is changed to red.

See also:

IChartLabel