IEaxAnalyzerCore.ExcludeChartElements

Fore Syntax

ExcludeChartElements(Elements: Array);

Fore.NET Syntax

ExcludeChartElements(Elements: System.Array);

Parameters

Elements. Array containing chart elements to be excluded.

Description

The ExcludeChartElements method excludes the specified dimensions elements from selection.

Comments

Array, which is set in the Elements parameter, can contain chart series or points. When the method is executed, dimension elements corresponding to selected chart elements will be excluded from selection.

Fore Example

Executing the example requires a form containing the Button component named Button1, the UiErAnalyzer component named UiErAnalyzer1, which is a data source for the ChartBox component named ChartBox1. Chart of the express report specified as data source for UiErAnalyzer1 should contain at least two series. Set the Active property to = True for the UiErAnalyzer1 component.

Add links to the Express and Chart system assembles.

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

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Eax: IEaxAnalyzer;
    Chart: IChart;
    Series: IChartSeries;
    Arr: Array Of Variant;
Begin
    Eax := UiErAnalyzer1.ErAnalyzer;
    Chart := Eax.Chart.Chart;
    Arr := New Variant
[2];
    Series := Chart.Series;
    Arr[0] := Series.Item(0);
    Arr[
1] := Series.Item(1);
    Eax.ExcludeChartElements(Arr);
End Sub Button1OnClick;

Clicking the button removes the first two chart series.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.

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

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    Eax: IEaxAnalyzer;
    Chart: IChart;
    Series: IChartSeries;
    Arr: Array Of object;
Begin
    Eax := UiErAnalyzerNet1.ErAnalyzer.ErAnalyzer;
    Chart := Eax.Chart.Chart;
    Arr := New object[2];
    Series := Chart.Series;
    Arr[0] := Series.Item[0];
    Arr[1] := Series.Item[1];
    Eax.ExcludeChartElements(Arr);
End Sub;

See also:

IEaxAnalyzeCore