Version

SetSpellCheckerSettings Method

Sets the SpellCheckerSettings extender property for the specified control.
Syntax
'Declaration
 
Public Sub SetSpellCheckerSettings( _
   ByVal control As Control, _
   ByVal spellCheckerSettings As SpellCheckerSettings _
) 
public void SetSpellCheckerSettings( 
   Control control,
   SpellCheckerSettings spellCheckerSettings
)

Parameters

control
The control whose SpellCheckerSettings property is being set.
spellCheckerSettings
A SpellCheckerSettings object which will be associated with the control.
Remarks

This method associates a SpellCheckerSettings object with a particular control. If there is already an existing SpellCheckerSettings associated with the specified control, then the existing SpellCheckerSettings is removed and replaced with the new SpellCheckerSettings.

Example
This sample shows how to enable spell checking for a rich text box

Imports Infragistics.Win.UltraWinSpellChecker

Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load

	'The extender property must be set for the rich text box so that it may
	'be spell checked.  This can also be done through the property grid
	'in the forms designer
	Me.ultraSpellChecker1.SetSpellCheckerSettings(Me.richTextBox1, New SpellCheckerSettings(True))

End Sub
using System.Windows.Forms;
using Infragistics.Win.UltraWinSpellChecker;

private void Form1_Load(object sender, EventArgs e)
{
	//The extender property must be set for the rich text box so that it may
	//be spell checked.  This can also be done through the property grid
	//in the forms designer
	this.ultraSpellChecker1.SetSpellCheckerSettings( this.richTextBox1, new SpellCheckerSettings( true ) );
}
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