Remove Method
- Namespace
TXTextControl.WPF. Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Removes an object of type DialogButton from the collection.
Syntax
public void Remove(DialogButton button);Public Sub Remove(button As DialogButton)Parameters
| Parameter | Description |
|---|---|
| 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);
}If dialogButtonCollection.Count > 0 Then
Dim dialogButton As TXTextControl.WPF.Proofing.DialogButton = dialogButtonCollection.Item(1)
dialogButtonCollection.Remove(dialogButton)
End IfRemarks
This method throws an exception when called while the SpellCheckDialog is open.