ClassDocumentProofingManager
Manages document proofing operations, providing functionality for proofing and review of documents.
Definition
Namespace:Telerik.Windows.Documents.Proofing
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class DocumentProofingManager
Inheritance: objectDocumentProofingManager
Constructors
DocumentProofingManager(RadDocument, ISpellChecker, IIgnoredWordDictionary)
Initializes a new instance of the DocumentProofingManager class.
Declaration
public DocumentProofingManager(RadDocument document, ISpellChecker spellChecker, IIgnoredWordDictionary ignoredWords)
Parameters
document
The document.
spellChecker
The spell checker to be used.
ignoredWords
A list of words that should be ignored.
Properties
MaximumIncorrectWordsNumber
Gets or sets the maximum incorrect words number. Negative value means unlimited.
Declaration
public int MaximumIncorrectWordsNumber { get; set; }
Property Value
The maximum incorrect words number.
Methods
CheckWordIsCorrect(string)
Checks if a specified word is correct.
GetIncorrectWordList()
Gets the list of incorrect words.
GetNextError(DocumentPosition)
Gets the next error.
Declaration
public TextRange GetNextError(DocumentPosition fromPosition)
Parameters
fromPosition
Start position.
Returns
The next error.
GetNextError(DocumentPosition, DocumentPosition)
Gets the next error.
Declaration
public TextRange GetNextError(DocumentPosition fromPosition, DocumentPosition toPosition)
Parameters
fromPosition
Start position.
toPosition
End position.
Returns
The next error in the specified range.
GetNextErrorWord(DocumentPosition)
Gets the next error.
Declaration
public WordInfo GetNextErrorWord(DocumentPosition fromPosition)
Parameters
fromPosition
Start position.
Returns
The next error.
GetNextErrorWord(DocumentPosition, DocumentPosition)
Gets the next error.
Declaration
public WordInfo GetNextErrorWord(DocumentPosition fromPosition, DocumentPosition toPosition)
Parameters
fromPosition
Start position.
toPosition
End position.
Returns
The next error in the specified range.
UpdateIncorrectWordsList()
Updates the list of incorrect words.
Declaration
public void UpdateIncorrectWordsList()
UpdateIncorrectWordsList(DocumentPosition, DocumentPosition)
Updates the list of incorrect words.
Declaration
public void UpdateIncorrectWordsList(DocumentPosition fromPosition, DocumentPosition toPosition)
Parameters
fromPosition
Position to start the update from.
toPosition
The end position.