New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinForms.Documents.Proofing

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class DocumentProofingManager

Inheritance: objectDocumentProofingManager

Constructors

Initializes a new instance of the DocumentProofingManager class.

C#
public DocumentProofingManager(RadDocument document, ISpellChecker spellChecker, IIgnoredWordDictionary ignoredWords)
Parameters:documentRadDocument

The document.

spellCheckerISpellChecker

The spell checker to be used.

ignoredWordsIIgnoredWordDictionary

A list of words that should be ignored.

Properties

Gets or sets the maximum incorrect words number. Negative value means unlimited.

C#
public int MaximumIncorrectWordsNumber { get; set; }
Property Value:

The maximum incorrect words number.

Methods

Checks if a specified word is correct.

C#
protected virtual bool CheckWordIsCorrect(string word)
Parameters:wordstring

The word.

Returns:

bool

true, if the word is correct; otherwise false.

Gets the list of incorrect words.

C#
public IList<WordInfo> GetIncorrectWordList()
Returns:

IList<WordInfo>

The list of incorrect words.

Gets the next error.

C#
public TextRange GetNextError(DocumentPosition fromPosition, DocumentPosition toPosition)
Parameters:fromPositionDocumentPosition

Start position.

toPositionDocumentPosition

End position.

Returns:

TextRange

The next error in the specified range.

Gets the next error.

C#
public TextRange GetNextError(DocumentPosition fromPosition)
Parameters:fromPositionDocumentPosition

Start position.

Returns:

TextRange

The next error.

Gets the next error.

C#
public WordInfo GetNextErrorWord(DocumentPosition fromPosition, DocumentPosition toPosition)
Parameters:fromPositionDocumentPosition

Start position.

toPositionDocumentPosition

End position.

Returns:

WordInfo

The next error in the specified range.

Gets the next error.

C#
public WordInfo GetNextErrorWord(DocumentPosition fromPosition)
Parameters:fromPositionDocumentPosition

Start position.

Returns:

WordInfo

The next error.

Updates the list of incorrect words.

C#
public void UpdateIncorrectWordsList()

Updates the list of incorrect words.

C#
public void UpdateIncorrectWordsList(DocumentPosition fromPosition, DocumentPosition toPosition)
Parameters:fromPositionDocumentPosition

Position to start the update from.

toPositionDocumentPosition

The end position.