IChart.IsDataLinkedDecor

Syntax

IsDataLinkedDecor: Boolean;

Description

The IsDataLinkedDecor property determines whether series formatting is linked to the data source.

Comments

The property is set to False by default.

Example

An express report with the Obj_1 identifier is required. Add a button with the Button1 identifier to the form.

To execute the example, add links to the Chart, Metabase and Express system assemblies.

The example is a handler of the OnClick event for the Button1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    chart:IChart;
    an:IEaxAnalyzer;
    mb:Imetabase;
Begin
    Mb:= MetabaseClass.Active;
    an:= Mb.ItemById(
"OBJ_1").Edit As IEaxAnalyzer;
    chart:=an.Sheets.Item(
0).Analyzer.Chart As IChart;
    chart.IsDataLinkedDecor:= 
True;

    (an As IMetabaseObject).Save;
End Sub Button1OnClick;

After executing the example series formatting is linked to the data source. If the series is removed from the selection and again added to the selection, the formatting, which is set before removing the series, is used.

See also:

IChart