IChart.IsDataLinkedDecor

Fore Syntax

IsDataLinkedDecor: Boolean;

Fore.NET 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.

Fore 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.

Fore.NET 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.

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Chart;
...

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    chart:IChart;
    an:IEaxAnalyzer;
    mb:Imetabase;
Begin
    mb:= Params.Metabase;
    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 button1_Click;

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