IEaxChart.AllowSingleCellRange

Syntax

AllowSingleCellRange: Boolean;

Description

TheAllowSingleCellRange property determines whether a chart is created based on a single cell.

This property is considered if the IEaxAnalyzerCore.UseGridSelection property (creating a chart based on a selected data table area) is set to True. If the AllowSingleCellRange property is set to True, a chart can be created based on a single cell. If the AllowSingleCellRange property is set to False, a chart is created only based on several selected cells. Default property value is False.

NOTE. This property is outdated, it is recommended to use IEaxChart.SingleCellRangeMode instead.

Example

Executing the example requires a form with a button on named Button1, the ChartBox and TabSheetBox components and the UiErAnalyzer component named UiErAnalyzer1 which is used as a data source.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    m_Eax: IEaxAnalyzer;
    Chart: IEaxChart;
Begin
    m_Eax := UiErAnalyzer1.ErAnalyzer;
    m_Eax.UseGridSelection := 
True;
    Chart := m_Eax.Chart;
    Chart.AllowSingleCellRange := 
True;
End Sub Button1OnClick;

After executing the example the chart can be plotted based both on a single or on multiple cells.

See also:

IEaxChart