Back to Devexpress

SpellCheckerDictionaryBase.WordCount Property

corelibraries-devexpress-dot-xtraspellchecker-dot-spellcheckerdictionarybase-830091e2.md

latest3.4 KB
Original Source

SpellCheckerDictionaryBase.WordCount Property

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

Declaration

csharp
public override int WordCount { get; }
vb
Public Overrides ReadOnly Property WordCount As Integer

Property Value

TypeDescription
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

csharp
MyCustomDictionary dictionary = new MyCustomDictionary();
for (int i = 0; i < dic.WordCount; i++)
    dictionary.AddWord(dic[i]);

asp-net-web-forms-spell-checker-load-and-update-custom-dictionary/CS/SpellCheckerCustomDictionarySample/Default.aspx.cs#L32

csharp
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

vb
Dim dictionary As New MyCustomDictionary()
For i As Integer = 0 To dic.WordCount - 1
    dictionary.AddWord(dic(i))

asp-net-web-forms-spell-checker-load-and-update-custom-dictionary/VB/SpellCheckerCustomDictionarySample/Default.aspx.vb#L35

vb
Dim stb As New StringBuilder()
For i As Integer = 0 To dic.WordCount - 1
    stb.AppendLine(dic(i))

See Also

SpellCheckerDictionaryBase Class

SpellCheckerDictionaryBase Members

DevExpress.XtraSpellChecker Namespace