TX Text Control .NET for Windows Forms

Font Property

Property|Introduced in 12.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Server.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the control's font.

Syntax

public System.Drawing.Font Font { get; set; }

Examples

The following example uses ServerTextControl.Font to configure font as part of the server text control workflow. The configured value is checked before the workflow continues.

textControl.Font = new System.Drawing.Font("Arial", 11.0f);
if (textControl.Font != null)
{
    Console.WriteLine("Server Text Control: Font is available.");
}