Starts spell checking the text in a given control.
Namespace:
C1.Win.C1SpellAssembly: C1.Win.C1Spell.2 (in C1.Win.C1Spell.2.dll)
Syntax
C# |
---|
public void CheckControl( Control ctrl ) |
Visual Basic (Declaration) |
---|
Public Sub CheckControl ( _ ctrl As Control _ ) |
Parameters
- ctrl
- Type: System.Windows.Forms..::.Control
Control to check.
Remarks
Use the LastSpellError property and the SpellError event to find out the occurred errors.
Examples
The following example uses the CheckControl method to check a TextBox control's spelling:
- Visual Basic

Private Sub btnCheckSpelling_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCheckSpelling.Click C1Spell1.CheckControl(TextBox1) End Sub |
- C#

privatevoid btnCheckSpelling_Click(object sender, EventArgs e) { c1Spell1.CheckControl(textBox1); } |
For an example using the CheckControl method, see Step 4: Provide Long Document Spell Checking (Middle Panel).