FindObject


Summary

Finds the chart object of the specified name.

Syntax

public ChartObject FindObject(string objectName)

Parameters

NameDescription

Example 1

// Draw a horizontal line.
Chart.DrawHorizontalLine("hLine", Symbol.Ask, Color.Red);
// Find the line that was drawn.
var obj = Chart.FindObject("hLine");
Print("Found object with name {0}", obj.Name);