UseSerieDesign: Boolean;
UseSerieDesign: Boolean;
The UseSerieDesign property determines whether formatting for series of the internal legend corresponds to formatting of chart series.
The property is relevant only for line and scatter series. When the property is used in the Fore or Fore.NET language with other chart 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.
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(1) As 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.
The example requires a report with the OBJ1102 identifier, and an external chart with the PrxChart1 identifier to be available in the active sheet.
Imports Prognoz.Platform.Interop.Drawing;
Imports Prognoz.Platform.Interop.Chart;
Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Tab;
Imports Prognoz.Platform.Interop.Metabase;
...
Sub Main(Params: StartParams);
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[1] As 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: