EditedSerie: Integer;
The EditedSerie property determines a series index in the edit modes: By Points and Drawing.
These modes are set by the IChart.InteractiveMode property.
The EditedSerie property returns -1 if a wrong editing mode is specified or no series is selected.
To execute the example, create a regular report with a chart on the report sheet. A unit is added to the report which can be used to call the GetS procedure using the hyperlink. Add links to the Chart, Report, Tab system assemblies.
Sub GetS;
Var
Chart : IChart;
Begin
Chart := PrxReport.ActiveReport.ActiveSheet.Table.Objects.Item(0).Extension As IChart;
Chart.InteractiveMode := ChartInteractiveMode.EditByPoint;
Chart.EditedSerie := 0;
End Sub GetS;
The By Points edit mode is set for the chart, and the series with the 0 index is selected for edit.
Create a regular report with the REGULAR_REPORT identifier, the report contains a chart. Add the Button, UiChartNet, ChartBoxNet components named button1, uiChartNet1, chartBoxNet1, respectively, to the form. Add links to the Metabase, Report, Chart, Tab system assemblies.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Chart;
Imports Prognoz.Platform.Interop.Tab;
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
Report: IPrxReport;
Sheet: IPrxSheet;
PrxTable: IPrxTable;
TabSheet: ITabSheet;
Chart: IChart;
MB: IMetabase;
Begin
MB := Self.Metabase;
Report := MB.ItemById["REGULAR_REPORT"].Edit() As IPrxReport;
Sheet := Report.Sheets.Item[0];
PrxTable := Sheet As IPrxTable;
TabSheet := PrxTable.TabSheet;
Chart := TabSheet.Objects.Item[0].Extension As IChart;
Chart.InteractiveMode := ChartInteractiveMode.ciamEditByPoint;
Chart.EditedSerie := 0;
chartBoxNet1.CtrlBox.Chart := Chart As DxChart;
End Sub;
The form displays a regular report chart, and the By Points edit mode is selected.
See also: