ChartObjects

View as Markdown

Definition

A collection of objects configured on the chart panel.

Property Value

An IList of Gui.NinjaScript.IChartObject instances containing references to the objects configured on the panel.

Syntax

ChartPanel.ChartObjects

Examples

1protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
2{
3 base.OnRender(chartControl, chartScale);
4
5 IList<Gui.NinjaScript.IChartObject> myObjects = ChartPanel.ChartObjects;
6
7 foreach (Gui.NinjaScript.IChartObject thisObject in myObjects)
8 {
9 Print(String.Format("{0} is of type {1}", thisObject.Name, thisObject.GetType()));
10 }
11}

The image below shows the output of the code example above, while applied in a chart panel with three objects.

ChartPanel_ChartObjects