ChartText.IsItalic
property · ChartText · cAlgo.API
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;}
chartText.IsItalic: bool
Returns bool
Examples
var text = Chart.DrawText("label", "High", Bars.OpenTimes.LastValue, Bars.HighPrices.LastValue, Color.White);
text.IsItalic = true;
Print("Text is italic: {0}", text.IsItalic);
text = api.Chart.DrawText("label", "High", api.Bars.OpenTimes.LastValue, api.Bars.HighPrices.LastValue, Color.White)
text.IsItalic = True
api.Print(f"Text is italic: {text.IsItalic}")