TX Text Control .NET Server

AdaptFontEvent Property

Property|Introduced in 15.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Specifies whether a TextControl.AdaptFont event is raised, if a font must be adapted. The default setting of this property is false.

Syntax

public bool AdaptFontEvent { get; set; }

Examples

The following example configures font settings for the current document by using FontSettings.AdaptFontEvent.

FontSettings fontSettings = textControl.FontSettings;

fontSettings.AdaptFontEvent = true;
if (fontSettings.AdaptFontEvent)
{
    Console.WriteLine("Font Settings: Adapt Font Event is enabled.");
}

fontSettings.TrueTypeFontsOnly = true;