FontWeight Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets the weight or thickness of the text control's font. This is a dependency property. The property value has the type System.Windows.FontWeight. The default value is FontWeights.Normal.
Syntax
public FontWeight FontWeight { get; set; }Public Property FontWeight() As FontWeightExamples
The following example uses TextControl.FontWeight to configure font weight as part of the text control workflow. The configured value is checked before the workflow continues.
textControl.FontWeight = System.Windows.FontWeights.Normal;
Console.WriteLine($"Font Weight used by Text Control: {textControl.FontWeight}");textControl.FontWeight = System.Windows.FontWeights.Normal
Console.WriteLine($"Font Weight used by Text Control: {textControl.FontWeight}")