Add Method
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.asTXSpell. WinForms. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Adds an object of type DialogButton to the collection.
Syntax
public int Add(DialogButton button);Public Function Add(button As DialogButton) As IntegerParameters
| Parameter | Description |
|---|---|
| button | Specifies an object of type DialogButton. |
Examples
The following example adds an item to the dialog button collection.
var result = dialogButtonCollection.Add(new TXTextControl.Proofing.DialogButton(TXTextControl.Proofing.TXSpell.ButtonType.AddToDictionary));
Console.WriteLine($"Add result: {result}");Dim result = dialogButtonCollection.Add(New TXTextControl.Proofing.DialogButton(TXTextControl.Proofing.TXSpell.ButtonType.AddToDictionary))
Console.WriteLine($"Add result: {result}")Remarks
This method throws an exception when called while the SpellCheckDialog is open.