IChartExternLegend.UseSerieDesign

Syntax

UseSerieDesign: Boolean;

Description

The UseSerieDesign property determines whether formatting for series of the internal legend corresponds to formatting of chart series.

Comments

The property is relevant only for line and scatter series. When this property is used from the Fore language with other series types, chart formatting does not change.

The property is set to False by default. Formatting of series in a legend and on a chart may differ.

In the interface the property is set by the Use Series Formatting checkbox on the General tab in the Legend Format dialog box.

Example

To execute the example, add links to the Chart, Drawing, Metabase, Report, and Tab system assemblies. The example requires a report with the OBJ1102 identifier, and an external chart with the PrxChart1 identifier to be available in the active sheet.

Sub Main;
Var
    mb: IMetabase;
    rep: IPrxReport;
    chartlegend: IChartExternLegend;
Begin
    mb := MetabaseClass.Active; 
    rep := mb.ItemById(
"OBJ1102").Edit As IPrxReport;
    chartlegend := (rep.ActiveSheet 
As IPrxTable).TabSheet.Objects.Item(1As IChartExternLegend;
    chartlegend.UseSerieDesign := 
True;
    (rep 
As IMetabaseObject).Save;
End Sub Main;

After executing the example series formatting in the legend is used in accordance with the series formatting in the chart.

See also:

IChartExternLegend