Skip to content

FontWeight

enum cAlgo.API

DesktopCLICloud

Specifies the weight or thickness of the font.

Definition

public enum FontWeight

Namespace: cAlgo.API · Group: Styles

Examples

var panel = new StackPanel { HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Top };
panel.AddChild(new TextBlock { Text = "EURUSD", FontWeight = FontWeight.Bold });
panel.AddChild(new TextBlock { Text = "Bid / Ask", FontWeight = FontWeight.Light });
Chart.AddControl(panel);
panel = StackPanel()
panel.HorizontalAlignment = HorizontalAlignment.Left
panel.VerticalAlignment = VerticalAlignment.Top
title = TextBlock()
title.Text = "EURUSD"
title.FontWeight = FontWeight.Bold
subtitle = TextBlock()
subtitle.Text = "Bid / Ask"
subtitle.FontWeight = FontWeight.Light
panel.AddChild(title)
panel.AddChild(subtitle)
api.Chart.AddControl(panel)

Values

Name Value Description
Thin 0 The thin font.
ExtraLight 1 The extra light font.
UltraLight 2 The ultra light font.
Light 3 The light font.
Normal 4 The normal font.
Regular 5 The regular font.
Medium 6 The medium font.
DemiBold 7 The demibold font.
SemiBold 8 The semibold font.
Bold 9 The bold font.
ExtraBold 10 The extra bold font.
UltraBold 11 The ultra bold font.
Black 12 The black font.
Heavy 13 The Heavy font.
ExtraBlack 14 The Extra black font.
UltraBlack 15 The ultra black font.

See also