TX Spell .NET for Windows Forms

Font Property

Property|Introduced in 3.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WinForms.SDK as TXSpell.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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.");
}