TX Text Control .NET for WPF

FontFamily 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 font family of the status bar. This is a dependency property. The property value has the type System.Windows.Media.FontFamily.

Syntax

public FontFamily FontFamily { get; set; }

Examples

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

statusBar.FontFamily = new System.Windows.Media.FontFamily("Segoe UI");
if (statusBar.FontFamily != null)
{
    Console.WriteLine("Status Bar: Font Family is available.");
}