IChartExternLegend.BackgroundInfo

Syntax

BackgroundInfo: IChartBackgroundInfo;

Description

The BackgroundInfo property determines properties of fill of external legend.

Example

Executing the example requires a regular report with the Report identifier. The report includes the following objects: a chart and an external legend.

Sub Main;
Var
    mb: IMetabase;
    rep: IPrxReport;
    legend: IPrxChartLegend;
    chartlegend: IChartExternLegend;
    items: IChartExternLegendItems;
    chartBI : IChartBackgroundInfo;
Begin
    mb:= MetabaseClass.Active;
    rep:= mb.ItemById("OBJ42859").Edit As IPrxReport;
    legend:= ((rep.ActiveSheet As IprxTable).TabSheet.Objects.Item(1)) As IPrxChartLegend;
    chartlegend:= legend As IChartExternLegend;
    chartlegend.AxisIcon:= ChartLegendAxisIcon.Axis;
    chartBI:= chartlegend.BackgroundInfo;
    chartBI.Color:= New GxColor.CreateARGB( 255245120255);     
    items:= chartlegend.InternalItems;        
    (rep As IMetabaseObject).Save;
End Sub Main;

After executing the example the fill color of the chart external legend is changed.

See also:

IChartExternLegend