Text
Description
Задаёт графическому объекту тип «Текст»
Example
// Let's set the name of the object
let TextObjectName = "MyTextObject";
// set the anchor coordinates of the object
let OurTextObject = this.getObject(TextObjectName);
// if it doesn't exist, then create it and set its properties
if (!OurTextObject) {
OurTextObject = this.createObject(GObject.Type.Text, TextObjectName)
// set the anchor coordinates of the object
.setTime1(Time[2])
.setPrice1(High[2])
// зададим желаемый цвет текста
.setColor(Color.Aquamarine)
// зададим собственно текст
.setText("Тут написано что-то")
// зададим размер шрифта
.setFontSize(22);
}