TX Spell .NET for Windows Forms

Add Method

Method|Introduced in 3.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WinForms.SDK as TXSpell.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Adds an object of type DialogButton to the collection.

Syntax

public int Add(DialogButton button);

Parameters

ParameterDescription
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}");

Remarks

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