Skip to content

Control.FontWeight

property · Control · cAlgo.API

DesktopCLICloud

Gets or sets the font weight.

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

Returns FontWeight

Examples

var textBlock = new TextBlock { Text = "Stop loss hit", FontWeight = FontWeight.Bold, ForegroundColor = Color.Red };
Chart.AddControl(textBlock);
textBlock = TextBlock()
textBlock.Text = "Stop loss hit"
textBlock.FontWeight = FontWeight.Bold
textBlock.ForegroundColor = Color.Red
api.Chart.AddControl(textBlock)