TX Text Control .NET Server

ResetFont Method

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

Description

Resets the Font property to its default value. The default value is 10 pt Arial.

Syntax

public void ResetFont();

Examples

The following example restores the font setting on the server text control to its default. The created object is then available to the surrounding document workflow.

textControl.ResetFont();
Console.WriteLine("Server Text Control is ready for use.");