TX Text Control .NET for WPF

FontWeight Property

Property|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the weight or thickness of the status bar'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; }

Examples

The following example uses StatusBar.FontWeight to configure font weight as part of the status bar workflow. The configured value is checked before the workflow continues.

statusBar.FontWeight = System.Windows.FontWeights.Normal;
Console.WriteLine($"Font Weight used by Status Bar: {statusBar.FontWeight}");