Skip to main content

SpellChecker.SpellingFormShowing Event

Occurs when the spelling form is about to be displayed.

Namespace: DevExpress.XtraSpellChecker

Assembly: DevExpress.XtraSpellChecker.v24.2.dll

Declaration

public event SpellingFormShowingEventHandler SpellingFormShowing

Event Data

The SpellingFormShowing event's data class is SpellingFormShowingEventArgs. The following properties provide information specific to this event:

Property Description
Handled Gets or sets a value indicating whether default event actions are required. Inherited from FormShowingEventArgs.
Suggestions Provides access to the collection of suggested words to be displayed at the spelling form.
Word Gets a misspelled word for which the spelling form is invoked.

Remarks

Handle this event to customize the spelling form’s layout. The spelling form is displayed for each misspelled word, shows a list of suggestions to the user, and awaits the response.

private void spellChecker1_SpellingFormShowing(object sender, DevExpress.XtraSpellChecker.SpellingFormShowingEventArgs e)
{
    var spellDialogForm = spellChecker1.FormsManager.SpellCheckForm;

    spellDialogForm.Controls["btnIgnore"].Enabled = false;
    spellDialogForm.Controls["btnIgnoreAll"].Visible = false;
    spellDialogForm.Controls["btnChangeAll"].Visible = false;
    spellDialogForm.Controls.Add(new SimpleButton() { Text = "Custom Button", Size = new Size(100, 25), Location = new Point(10, 150) });
}
See Also