IChartSelectedSeries.AllowEdit

Fore Syntax

AllowEdit: Boolean;

Fore.NET Syntax

AllowEdit: System.Boolean;

Description

The AllowEdit property determines whether the series values can be edited directly on the chart.If the value of this property is True, the series values can be edited. When the value is False, editing becomes unavailable.

Fore Example

Executing the example requires a form, the Button1 button located on this form, the ChartBox component and UiChart component used as a data source.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    SelectedSeries: IChartSelectedSeries;
Begin
    SelectedSeries:= UiChart1.Chart.SelectedSeries;
    SelectedSeries.AllowEdit:= True;    
End Sub Button1OnClick;

After clicking Button1, the editing of the series values directly on the chart becomes available.

Fore.NET Example

Executing the example requires a form, the Button1 button located on this form, the ChartBoxNet component and UiChartNet component used as a data source.

Imports Prognoz.Platform.Forms.Net;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Chart;

...

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    SelectedSeries: IChartSelectedSeries;
Begin
    SelectedSeries:= UiChartNet1.ChartUi.Chart.SelectedSeries;
    SelectedSeries.AllowEdit:= True;    
End Sub;

After clicking the Button1 button, the editing of the series values directly on the chart becomes available.

See also:

IChartSelectedSeries