GetSupportedFonts Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. 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();Public Function GetSupportedFonts() As String()Examples
The following example retrieves supported fonts from the server text control.
string[] results = textControl.GetSupportedFonts();
foreach (string text in results)
{
Console.WriteLine(text);
}Dim results As String() = textControl.GetSupportedFonts()
For Each text As String In results
Console.WriteLine(text)
Next