Skip to content

Control.FontFamily

property · Control · cAlgo.API

DesktopCLICloud

Gets or sets the font family.

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 string FontFamily {get; set;}
control.FontFamily: str

Returns string

Examples

var textBlock = new TextBlock { Text = Symbol.Bid.ToString(), FontFamily = "Consolas", FontSize = 16 };
Chart.AddControl(textBlock);
textBlock = TextBlock()
textBlock.Text = str(api.Symbol.Bid)
textBlock.FontFamily = "Consolas"
textBlock.FontSize = 16
api.Chart.AddControl(textBlock)