Remove Method
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.asTXSpell. WinForms. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. 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.Proofing.DialogButton dialogButton = dialogButtonCollection[1];
dialogButtonCollection.Remove(dialogButton);
}If dialogButtonCollection.Count > 0 Then
Dim dialogButton As TXTextControl.Proofing.DialogButton = dialogButtonCollection.Item(1)
dialogButtonCollection.Remove(dialogButton)
End IfRemarks
This method throws an exception when called while the SpellCheckDialog is open.