ChartText.FontSize
property · ChartText · cAlgo.API
DesktopCLICloud
Gets or sets the font size of text
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
double FontSize {get; set;}
chartText.FontSize: float
Returns double
Examples
var text = Chart.DrawText("label", "High", Bars.OpenTimes.LastValue, Bars.HighPrices.LastValue, Color.White);
text.FontSize = 14;
Print("Text font size: {0}", text.FontSize);
text = api.Chart.DrawText("label", "High", api.Bars.OpenTimes.LastValue, api.Bars.HighPrices.LastValue, Color.White)
text.FontSize = 14
api.Print(f"Text font size: {text.FontSize}")