IChartSource.GetChart

Syntax

GetChart: IChart;

Description

The GetChart method gets a chart.

Example

This example assumes that there is the Cb object of the ChartBox type.

Sub UserProc;
Var
    Cb : ChartBox;
    CS : IChartSource;
    Chart : IChart;
Begin
    CS := Cb.Source;
    Chart := CS.GetChart As IChart;
    Chart.Type := ChartType.Lines;
    Chart.Orientation := ChartOrientation.UpToDown;
End Sub UserProc;

Executing the example changes chart parameters.

See also:

IChartSource