Class DocumentProofingManager
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Documents.Proofing
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public class DocumentProofingManager
Constructors
DocumentProofingManager(RadDocument, ISpellChecker, IIgnoredWordDictionary)
Initializes a new instance of the Document
Declaration
public DocumentProofingManager(RadDocument document, ISpellChecker spellChecker, IIgnoredWordDictionary ignoredWords)
Parameters
Rad The document. |
ISpell The spell checker to be used. |
IIgnored 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
System. The maximum incorrect words number. |
Methods
CheckWordIsCorrect(String)
Checks if a specified word is correct.
Declaration
protected virtual bool CheckWordIsCorrect(string word)
Parameters
System. The word. |
Returns
System.
|
GetIncorrectWordList()
Gets the list of incorrect words.
Declaration
public IList<WordInfo> GetIncorrectWordList()
Returns
System. The list of incorrect words. |
GetNextError(DocumentPosition)
Gets the next error.
Declaration
public TextRange GetNextError(DocumentPosition fromPosition)
Parameters
Document Start position. |
Returns
Text The next error. |
GetNextError(DocumentPosition, DocumentPosition)
Gets the next error.
Declaration
public TextRange GetNextError(DocumentPosition fromPosition, DocumentPosition toPosition)
Parameters
Document Start position. |
Document End position. |
Returns
Text The next error in the specified range. |
GetNextErrorWord(DocumentPosition)
Gets the next error.
Declaration
public WordInfo GetNextErrorWord(DocumentPosition fromPosition)
Parameters
Document Start position. |
Returns
Word The next error. |
GetNextErrorWord(DocumentPosition, DocumentPosition)
Gets the next error.
Declaration
public WordInfo GetNextErrorWord(DocumentPosition fromPosition, DocumentPosition toPosition)
Parameters
Document Start position. |
Document End position. |
Returns
Word 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
Document Position to start the update from. |
Document The end position. |