Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SpellChecker.SpellingFormShowing Event

Occurs when the spelling form is about to be displayed.

Namespace: DevExpress.XtraSpellChecker

Assembly: DevExpress.XtraSpellChecker.v24.2.dll

NuGet Package: DevExpress.Win.SpellChecker

#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