Add Method
- Namespace
TXTextControl.WPF. Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWPF. 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.WPF.Proofing.DialogButton(TXTextControl.Proofing.TXSpell.ButtonType.AddToDictionary));
Console.WriteLine($"Add result: {result}");Dim result = dialogButtonCollection.Add(New TXTextControl.WPF.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.