TX Text Control .NET Server

GetSupportedFonts Method

Method|Introduced in 15.1
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 an array of strings specifying the names of all currently supported fonts. These fonts depend on the formatting device set with the ServerTextControl.FormattingPrinter property. The method returns null if the ServerTextControl has not been completely initialized.

Syntax

public string[] GetSupportedFonts();

Examples

The following example retrieves supported fonts from the server text control.

string[] results = textControl.GetSupportedFonts();
foreach (string text in results)
{
    Console.WriteLine(text);
}