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 text control. 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 TextControl.FontFamily to configure font family as part of the text control workflow. The configured value is checked before the workflow continues.

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