AdaptedFontName Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Gets or sets the adapted font. When the event occurs the property contains the name of the font which replaces the original font. If the property is changed, TextControl uses the changed font to replace the original font. The font must be one of the fonts listed in the array of supported fonts. This array can be obtained with the AdaptFontEventArgs.SupportedFonts property.
Syntax
public string AdaptedFontName { get; set; }Public Property AdaptedFontName As StringExamples
The following example uses AdaptFontEventArgs.AdaptedFontName while handling AdaptFont.
textControl.AdaptFont += (_, e) =>
{
Console.WriteLine($"Adapted Font Name: {e.AdaptedFontName}");
};AddHandler textControl.AdaptFont,
Sub(sender, e)
Console.WriteLine($"Adapted Font Name: {e.AdaptedFontName}")
End Sub