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

To execute this example, create a regular report with a chart on the report sheet. A module is to be added to the report and the UserProc procedure is called from this module using the hyperlink. The inspector of module assemblies should contain references 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

To execute this example, create 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 module of the specified assembly in the EventsClass class. The inspector of module assemblies should contain references to the following system assemblies: Chart, Report, Tab and Drawing.

  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