Skip to content

ChartStaticText.IsBold

property · ChartStaticText · cAlgo.API Since 5.2

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;}
chartStaticText.IsBold: bool

Returns bool

Examples

var text = Chart.DrawStaticText("info", SymbolName, VerticalAlignment.Top, HorizontalAlignment.Right, Color.White);
text.IsBold = true;
Print("Static text is bold: {0}", text.IsBold);
text = api.Chart.DrawStaticText("info", api.SymbolName, VerticalAlignment.Top, HorizontalAlignment.Right, Color.White)
text.IsBold = True
api.Print(f"Static text is bold: {text.IsBold}")