Skip to content

Control.FontSize

property · Control · cAlgo.API

DesktopCLICloud

Gets or sets the font size.

Environment behaviour

CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Definition

public double FontSize {get; set;}
control.FontSize: float

Returns double

Examples

var textBlock = new TextBlock { Text = SymbolName, FontSize = 24 };
Chart.AddControl(textBlock);
Print("Font size: {0}", textBlock.FontSize);
textBlock = TextBlock()
textBlock.Text = api.SymbolName
textBlock.FontSize = 24
api.Chart.AddControl(textBlock)
api.Print(f"Font size: {textBlock.FontSize}")