ChartText.IsBold
property · ChartText · cAlgo.API
DesktopCLICloud
Gets or sets if the text is Bold or not
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
bool IsBold {get; set;}
chartText.IsBold: bool
Returns bool
Examples
var text = Chart.DrawText("label", "High", Bars.OpenTimes.LastValue, Bars.HighPrices.LastValue, Color.White);
text.IsBold = true;
Print("Text is bold: {0}", text.IsBold);
text = api.Chart.DrawText("label", "High", api.Bars.OpenTimes.LastValue, api.Bars.HighPrices.LastValue, Color.White)
text.IsBold = True
api.Print(f"Text is bold: {text.IsBold}")