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