DialogButton Class
- Namespace
TXTextControl.WPF. Proofing
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTXSpell. WPF. SDK
- Assembly
TXSpell.WPF. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTXSpell. WPF. SDK TXSpell.from the setup.WPF. dll
Description
The DialogButton class represents a button of the built-in SpellCheckDialog. Objects of this class can be added or removed to the dialog by modifying the SpellCheckDialog.IgnoreButtons, SpellCheckDialog.ChangeButtons and SpellCheckDialog.OptionButtons dialog button collections.
Syntax
public sealed class DialogButtonPublic NotInheritable Class DialogButtonExamples
The following example creates a Dialog Button instance and configures its enabled setting for a document workflow.
TXTextControl.WPF.Proofing.DialogButton dialogButton = new(TXTextControl.Proofing.TXSpell.ButtonType.AddToDictionary);
dialogButton.Enabled = true;Dim dialogButton As New TXTextControl.WPF.Proofing.DialogButton(TXTextControl.Proofing.TXSpell.ButtonType.AddToDictionary)
dialogButton.Enabled = TrueMembers
Constructors
| Constructor | Description |
|---|---|
| DialogButton | Initializes a new instance of the DialogButton class. |
Properties
| Property | Description |
|---|---|
| Enabled | Gets or sets a value indicating whether the DialogButton can respond to user interaction. |
| FontFamily | Gets or sets the font family of the text displayed by the DialogButton. |
| FontSize | Gets or sets the font size of the text displayed by the DialogButton. |
| FontStyle | Gets or sets the font style of the text displayed by the DialogButton. |
| FontWeight | Gets or sets the font weight of the text displayed by the DialogButton. |
| IsDeleteButton | Gets or sets a value specifying the DialogButton text. The behavior changes to a Delete button, if the incorrect word (TXTextControl.MisspelledWord) is a duplicated word (TXTextControl.MisspelledWord.IsDuplicate). |
| IsUndoEditButton | Gets or sets a value specifying the DialogButton text. The behavior changes to an Undo Edit button, if the preview text of the SpellCheckDialog is manually modified. When no button in the dialog is set to true, the preview text is not editable. |
| Text | Gets or sets the text displayed by the DialogButton. |
| Type | Gets a value of type ButtonType which is specified for the DialogButton. |