UseSerieDesign: Boolean;
UseSerieDesign: Boolean;
The UseSerieDesign property determines whether formatting for series of the internal legend corresponds to formatting of chart series.
This property is relevant only for linear and scatter series. When this property is used from the Fore or Fore.NET language with other chart types, chart formatting does not change.
By default this property is set to False. And 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 window.
To execute this example, add references to the Chart, Drawing, Metabase, Report, and Tab system assemblies. This 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.
This 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: