TX Text Control .NET Server

GetCount Method

Method|Introduced in 18.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Returns the number of misspelled words with a special meaning from the collection.

Syntax

public int GetCount(MisspelledWordKind kind);

Parameters

ParameterDescription
kind

Specifies the word's kind. It must be one or more values of the MisspelledWordKind enumeration.

Return Value

The return value is an IEnumerator that represents the collection.

Examples

The following example works with misspelled words in the current document by using MisspelledWordCollection.get_Count.

MisspelledWordCollection misspelledWordCollection = textControl.MisspelledWords;

var result = misspelledWordCollection.GetCount(MisspelledWordKind.Normal);
Console.WriteLine($"Get Count result: {result}");