TX Spell .NET for Windows Forms

HideSelection 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 a value indicating whether the selected text in the TXTextControl.TextControl remains highlighted while the SpellCheckDialog is open. The default value is false.

Syntax

public bool HideSelection { get; set; }

Examples

The following example uses SpellCheckDialog.HideSelection to configure hide selection as part of the spell check dialog workflow. The configured value is checked before the workflow continues.

spellCheckDialog.HideSelection = false;
if (spellCheckDialog.HideSelection)
{
    Console.WriteLine("Spell Check Dialog: Hide Selection is enabled.");
}

Remarks

This parameter is only executable, if the SpellCheckDialog is connected to an object of type TXTextControl.TextControl.