corelibraries-devexpress-dot-xtraspellchecker-dot-spellcheckerdictionarybase-830091e2.md
Gets the number of word entries contained in the dictionary.
Namespace : DevExpress.XtraSpellChecker
Assembly : DevExpress.SpellChecker.v25.2.Core.dll
NuGet Package : DevExpress.SpellChecker.Core
public override int WordCount { get; }
Public Overrides ReadOnly Property WordCount As Integer
| Type | Description |
|---|---|
| Int32 |
An integer specifying the number of word entries in the dictionary.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the WordCount property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
asp-net-web-forms-spell-checker-getting-started/CS/WebApplication1/Default.aspx.cs#L20
MyCustomDictionary dictionary = new MyCustomDictionary();
for (int i = 0; i < dic.WordCount; i++)
dictionary.AddWord(dic[i]);
StringBuilder stb = new StringBuilder();
for (int i = 0; i < dic.WordCount; i++)
stb.AppendLine(dic[i]);
asp-net-web-forms-spell-checker-getting-started/VB/WebApplication1/Default.aspx.vb#L22
Dim dictionary As New MyCustomDictionary()
For i As Integer = 0 To dic.WordCount - 1
dictionary.AddWord(dic(i))
Dim stb As New StringBuilder()
For i As Integer = 0 To dic.WordCount - 1
stb.AppendLine(dic(i))
See Also
SpellCheckerDictionaryBase Class