FontFamily Property
- Namespace
TXTextControl.WPF. Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets the font family for the text displayed by the SpellCheckDialog labels, the preview, suggestion list, suggestion dictionary combo box and the cancel button.
Syntax
public FontFamily FontFamily { get; set; }Public Property FontFamily As FontFamilyExamples
The following example uses SpellCheckDialog.FontFamily to configure font family as part of the spell check dialog workflow. The configured value is checked before the workflow continues.
spellCheckDialog.FontFamily = new System.Windows.Media.FontFamily("Segoe UI");
if (spellCheckDialog.FontFamily != null)
{
Console.WriteLine("Spell Check Dialog: Font Family is available.");
}spellCheckDialog.FontFamily = New System.Windows.Media.FontFamily("Segoe UI")
If spellCheckDialog.FontFamily IsNot Nothing Then
Console.WriteLine("Spell Check Dialog: Font Family is available.")
End If