[]
        
(Showing Draft Content)

C1.Win.C1SpellChecker.C1SpellChecker.SetActiveSpellChecking

SetActiveSpellChecking Method

SetActiveSpellChecking(TextBoxBase, bool)

Sets whether the C1SpellChecker should highlight spelling mistakes as the user types on a given TextBoxBase.

Declaration
public void SetActiveSpellChecking(TextBoxBase textBox, bool spellChecking)
Parameters
Type Name Description
TextBoxBase textBox

TextBoxBase that will be monitored for spelling mistakes.

bool spellChecking

True to provide as-you-type spell-checking to the textBox.

SetActiveSpellChecking(ISpellCheckableRichEditor, bool)

Sets whether the C1SpellChecker should monitor a given ISpellCheckableRichEditor and highlight spelling mistakes.

Declaration
public void SetActiveSpellChecking(ISpellCheckableRichEditor editor, bool spellChecking)
Parameters
Type Name Description
ISpellCheckableRichEditor editor

ISpellCheckableRichEditor that will be monitored for spelling mistakes.

bool spellChecking

True to provide as-you-type spell-checking to the editor.

Remarks

The C1SpellChecker provides as-you-type spell-checking to controls based on the TextBoxBase.

To spell-check other editors, you must write a wrapper class that implements the ISpellCheckableRichEditor interface. This class provides the necessary connection between the C1SpellChecker and the editor.

SetActiveSpellChecking(WebBrowser, bool)

Sets whether the C1SpellChecker should highlight spelling mistakes in a WebBrowser control.

Declaration
public void SetActiveSpellChecking(WebBrowser browser, bool spellChecking)
Parameters
Type Name Description
WebBrowser browser

WebBrowser that will be monitored for spelling mistakes.

bool spellChecking

True to provide as-you-type spell-checking to the browser.

SetActiveSpellChecking(Control, object, bool)

Sets whether the C1SpellChecker should highlight spelling mistakes in a WebBrowser control.

Declaration
public void SetActiveSpellChecking(Control control, object activeXBrowser, bool spellChecking)
Parameters
Type Name Description
Control control

Control that will be monitored for spelling mistakes.

object activeXBrowser

IHtmlDocument2 interface that exposes the control contents.

bool spellChecking

True to provide as-you-type spell-checking to the activeXBrowser.