Skip to content

ChartText.Color

property · ChartText · cAlgo.API

DesktopCLICloud

Gets or sets the text color.

Environment behaviour

CLI — works differently. Created and kept with all its properties, but never drawn: the CLI displays no chart.

Cloud — works differently. Created and kept with all its properties, but never drawn: the cloud displays no chart.

Definition

Color Color {get; set;}
chartText.Color: Color

Returns Color

Examples

var text = Chart.DrawText("label", "High", Bars.OpenTimes.LastValue, Bars.HighPrices.LastValue, Color.White);
text.Color = Color.Orange;
Print("Text color: {0}", text.Color);
text = api.Chart.DrawText("label", "High", api.Bars.OpenTimes.LastValue, api.Bars.HighPrices.LastValue, Color.White)
text.Color = Color.Orange
api.Print(f"Text color: {text.Color}")