TX Spell .NET for WPF

Remove Method

Method|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

Removes an object of type DialogButton from the collection.

Syntax

public void Remove(DialogButton button);

Parameters

ParameterDescription
button

Specifies an object of type DialogButton.

Examples

The following example removes the first dialog button when the collection is not empty.

if (dialogButtonCollection.Count > 0)
{
    TXTextControl.WPF.Proofing.DialogButton dialogButton = dialogButtonCollection[1];
    dialogButtonCollection.Remove(dialogButton);
}

Remarks

This method throws an exception when called while the SpellCheckDialog is open.