TX Text Control .NET Server

Font Property

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

Description

Gets or sets the font which is used to display text.

Syntax

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

Examples

The following example uses StatusBarViewGenerator.Font to configure font as part of the status bar view generator workflow. The configured value is checked before the workflow continues.

statusBarViewGenerator.Font = new System.Drawing.Font("Arial", 11.0f);
if (statusBarViewGenerator.Font != null)
{
    Console.WriteLine("Status Bar View Generator: Font is available.");
}