TX Spell .NET for WPF

DialogButtonCollection Class

Class|Introduced in 3.0
Namespace
TXTextControl.WPF.Proofing
Package
TXTextControl.TXSpell.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXSpell.WPF.dll
Install
dotnet add package TXTextControl.TXSpell.WPF.SDK .NET 8 and later. For .NET Framework, reference TXSpell.WPF.dll from the setup.
Inherits
  1. CollectionBase
  2. DialogButtonCollection
Implements
IEnumerable, IEnumerator

Description

An instance of the DialogButtonCollection class contains all objects of type DialogButton that represent the dialog buttons of the built-in SpellCheckDialog. It is inherited from the abstract class System.Collections.CollectionBase and implements the System.Collections.IEnumerable and System.Collections.IEnumerator interfaces. For a list of properties, methods and events of these classes and interfaces see the .NET Framework reference.

Syntax

public sealed class DialogButtonCollection : CollectionBase, IEnumerable, IEnumerator

Examples

The following example includes the item value from a Dialog Button Collection object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Item: {dialogButtonCollection[10]}");
Console.WriteLine("Dialog Button Collection is ready for use.");

Members

Properties

PropertyDescription
CurrentNot described in the reference. public object Current { get; }
ItemGets a DialogButton from the collection. This property is the indexer for the DialogButtonCollection class.

Methods

MethodDescription
AddAdds an object of type DialogButton to the collection.
AddRangeAdds a collection of DialogButtons to the collection.
ClearNot described in the reference. public void Clear();
MoveNextNot described in the reference. public bool MoveNext();
RemoveRemoves an object of type DialogButton from the collection.
RemoveAtNot described in the reference. public void RemoveAt(int index);
ResetNot described in the reference. public void Reset();