DialogButtonCollection Class
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTXSpell. WinForms. SDK
- Assembly
TXSpell.Windows. Forms. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTXSpell. WinForms. SDK TXSpell.from the setup.Windows. Forms. dll
- Inherits
- Collection
Base - Dialog
Button Collection
- Collection
- 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, IEnumeratorPublic NotInheritable Class DialogButtonCollection
Inherits CollectionBase
Implements IEnumerable, IEnumeratorExamples
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.");Console.WriteLine($"Item: {dialogButtonCollection.Item(10)}")
Console.WriteLine("Dialog Button Collection is ready for use.")Members
Properties
| Property | Description |
|---|---|
| Current | Not described in the reference. public object Current { get; } |
| Item | Gets a DialogButton from the collection. This property is the indexer for the DialogButtonCollection class. |
Methods
| Method | Description |
|---|---|
| Add | Adds an object of type DialogButton to the collection. |
| AddRange | Adds a collection of DialogButtons to the collection. |
| Clear | Not described in the reference. public void Clear(); |
| MoveNext | Not described in the reference. public bool MoveNext(); |
| Remove | Removes an object of type DialogButton from the collection. |
| RemoveAt | Not described in the reference. public void RemoveAt(int index); |
| Reset | Not described in the reference. public void Reset(); |