AddRange Method
- Namespace
TXTextControl.WPF. Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Adds a collection of DialogButtons to the collection.
Syntax
public void AddRange(IEnumerable<DialogButton> collection);Public Sub AddRange(collection As IEnumerable(Of DialogButton))Parameters
| Parameter | Description |
|---|---|
| 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.");dialogButtonCollection.AddRange(Array.Empty(Of 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.