IChartSerieBase.ResetInheritance

Syntax

ResetInheritance(Value: ChartSeriePropertyInheritance);

Parameters

Value. The settings that must be reset according to the setting specified for the series by default.

Description

The ResetInheritance method resets the series setting and sets the default value defined for the series.

Comments

Default series settings can be set in the IChartSeries.DefaultSerie property.

Example

Executing the example requires that the repository contains a regular report with the REPORT identifier. The chart is created on report active sheet. The chart displays at least five data series.

Add links to the Chart, Metabase, Report, Tab system assemblies.

Sub UserProc;
Var
    Mb: IMetabase;
    Rep: IPrxReport;
    Tab: ITabSheet;
    Chart: IChart;
    Series: IChartSeries;
    i: Integer;
Begin
    Mb := MetabaseClass.Active;
    Rep := Mb.ItemById(
"REPORT").Edit As IPrxReport;
    Tab := (Rep.ActiveSheet 
As IPrxTable).TabSheet;
    Chart := Tab.Objects.Item(
0As IChart;
    Series := Chart.Series;
    Tab.BeginUpdate;
    
//Reset series settings
    For i := 0 To 4 Do
        Series.Item(i).ResetInheritance(ChartSeriePropertyInheritance.All);
    
End For;
    Tab.EndUpdate;
    
//Save report
    (Rep As IMetabaseObject).Save;
End Sub UserProc;

On executing the example, formatting settings will be reset for first five series.

See also:

IChartSerieBase