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 of the text displayed by the DialogButton.

Syntax

public System.Drawing.Font Font { get; set; }

Examples

The following example uses DialogButton.Font to configure font as part of the dialog button workflow. The configured value is checked before the workflow continues.

dialogButton.Font = new System.Drawing.Font("Arial", 11.0f);
if (dialogButton.Font != null)
{
    Console.WriteLine("Dialog Button: Font is available.");
}