Version

ShowSpellCheckDialog(IWin32Window,Object) Method

Shows the spell checking dialog for the specified object and returns the System.Windows.Forms.DialogResult of the dialog box.
Syntax
'Declaration
 
Public Overloads Function ShowSpellCheckDialog( _
   ByVal owner As IWin32Window, _
   ByVal spellCheckTarget As Object _
) As DialogResult
public DialogResult ShowSpellCheckDialog( 
   IWin32Window owner,
   object spellCheckTarget
)

Parameters

owner
The top-level object that will own the dialog box.
spellCheckTarget
The object being spell checked. This must be of a type supported by the spell checker.

Return Value

The dialog result of dialog box, or System.Windows.Forms.DialogResult.None if the SpellCheckDialogOpening event was cancelled. System.Windows.Forms.DialogResult.Cancel indicates the spell check dialog was closed before all words were checked
Example
This sample shows how to show a modal spell check dialog

Imports Infragistics.Win.UltraWinSpellChecker

Private Sub btSpellCheckModally_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btSpellCheckModally.Click
	'Show the spell check dialog for the rich text box modally
	Me.ultraSpellChecker1.ShowSpellCheckDialog(Me.richTextBox1)
End Sub
using System.Windows.Forms;
using Infragistics.Win.UltraWinSpellChecker;

private void btSpellCheckModally_Click(object sender, EventArgs e)
{
	//Show the spell check dialog for the rich text box modally
	this.ultraSpellChecker1.ShowSpellCheckDialog( this.richTextBox1 );
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also