TX Spell .NET for WPF

HideSelection Property

Property|Introduced in 3.0
Namespace
TXTextControl.WPF.Proofing
Package
TXTextControl.TXSpell.WPF.SDK as TXSpell.WPF.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.WPF.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.WPF.TextControl.