Control.FontStyle
property · Control · cAlgo.API
DesktopCLICloud
Gets or sets the font style.
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 FontStyle FontStyle {get; set;}
control.FontStyle: FontStyle
Returns FontStyle
Examples
var textBlock = new TextBlock { Text = "Backtesting mode", FontStyle = FontStyle.Italic };
Chart.AddControl(textBlock);
textBlock = TextBlock()
textBlock.Text = "Backtesting mode"
textBlock.FontStyle = FontStyle.Italic
api.Chart.AddControl(textBlock)