TX Spell .NET for WPF

AddRange Method

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

Description

Adds a collection of DialogButtons to the collection.

Syntax

public void AddRange(IEnumerable<DialogButton> collection);

Parameters

ParameterDescription
collection

Specifies the collection of DialogButtons.

Examples

The following example uses Add Range in a focused Dialog Button Collection workflow. The created object is then available to the surrounding document workflow.

dialogButtonCollection.AddRange(Array.Empty<TXTextControl.WPF.Proofing.DialogButton>());
Console.WriteLine("Dialog Button Collection is ready for use.");

Remarks

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