TX Text Control .NET for WPF

FontSettings 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 a FontSettings object which provides properties determining which fonts can be used in a document.

Syntax

public FontSettings FontSettings { get; set; }

Examples

The following example uses TextControl.FontSettings to configure font settings as part of the text control workflow. The configured value is checked before the workflow continues.

textControl.FontSettings = new FontSettings();
if (textControl.FontSettings != null)
{
    Console.WriteLine("Text Control: Font Settings is available.");
}