TX Text Control .NET Server

Font Property

Property|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

Gets or sets the control's font.

Syntax

Font (Font)

Gets or sets the control's font.

Only in TXTextControl.TextControl.Core.SDK.

public Font Font { get; set; }

Font (System.Drawing.Font)

Only in TXTextControl.TextControl.ASP.SDK.

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.");
}