Returns the number of bad words which were found during the last spell check.
Namespace:
C1.Win.C1SpellAssembly: C1.Win.C1Spell.2 (in C1.Win.C1Spell.2.dll)
Syntax
| C# |
|---|
[BrowsableAttribute(false)] public int BadWordCount { get; } |
| Visual Basic (Declaration) |
|---|
<BrowsableAttribute(False)> _ Public ReadOnly Property BadWordCount As Integer |
Examples
The following example uses the BadWordCount property and displays a message box to show the number of bad words which were found during the last spell check:
- Visual Basic
Private Sub btnSpellCheck_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSpellCheck.Click
' this will check the whole window, displaying the spelling dialog
' when a bad word is found and correcting words as needed
C1Spell1.CheckControl(TextBox4)
' when it is done, give the user some feedback
If C1Spell1.BadWordCount > 0 Then
MessageBox.Show("Done spell checking. " & C1Spell1.BadWordCount & " typing errors.")
Else
MessageBox.Show("Done spell checking. No spelling errors.")
End If
End Sub |
- C#
privatevoid btnSpellCheck_Click(object sender, EventArgs e) { // this will check the whole window, displaying the spelling dialog// when a bad word is found and correcting words as needed c1Spell1.CheckControl(textBox4); // when it is done, give the user some feedbackif ( c1Spell1.BadWordCount > 0 ) MessageBox.Show("Done spell checking. " + c1Spell1.BadWordCount + " typing errors.") else MessageBox.Show("Done spell checking. No spelling errors."); } |
For an example using the BadWordCount property, see Step 4: Provide Long Document Spell Checking (Middle Panel).