Skip to content

ChartStaticText.IsItalic

property · ChartStaticText · cAlgo.API Since 5.2

DesktopCLICloud

Gets or sets if the text is Italic 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 IsItalic {get; set;}
chartStaticText.IsItalic: bool

Returns bool

Examples

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