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 DocumentProofingManager class.
Declaration
public DocumentProofingManager(RadDocument document, ISpellChecker spellChecker, IIgnoredWordDictionary ignoredWords)
Parameters
RadDocument
document
The document. |
ISpellChecker
spellChecker
The spell checker to be used. |
IIgnoredWordDictionary
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
System.Int32
The maximum incorrect words number. |
Methods
CheckWordIsCorrect(String)
Checks if a specified word is correct.
Declaration
protected virtual bool CheckWordIsCorrect(string word)
Parameters
System.String
word
The word. |
Returns
System.Boolean
|
GetIncorrectWordList()
Gets the list of incorrect words.
Declaration
public IList<WordInfo> GetIncorrectWordList()
Returns
System.Collections.Generic.IList<WordInfo>
The list of incorrect words. |
GetNextError(DocumentPosition)
Gets the next error.
Declaration
public TextRange GetNextError(DocumentPosition fromPosition)
Parameters
DocumentPosition
fromPosition
Start position. |
Returns
TextRange
The next error. |
GetNextError(DocumentPosition, DocumentPosition)
Gets the next error.
Declaration
public TextRange GetNextError(DocumentPosition fromPosition, DocumentPosition toPosition)
Parameters
DocumentPosition
fromPosition
Start position. |
DocumentPosition
toPosition
End position. |
Returns
TextRange
The next error in the specified range. |
GetNextErrorWord(DocumentPosition)
Gets the next error.
Declaration
public WordInfo GetNextErrorWord(DocumentPosition fromPosition)
Parameters
DocumentPosition
fromPosition
Start position. |
Returns
WordInfo
The next error. |
GetNextErrorWord(DocumentPosition, DocumentPosition)
Gets the next error.
Declaration
public WordInfo GetNextErrorWord(DocumentPosition fromPosition, DocumentPosition toPosition)
Parameters
DocumentPosition
fromPosition
Start position. |
DocumentPosition
toPosition
End position. |
Returns
WordInfo
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
DocumentPosition
fromPosition
Position to start the update from. |
DocumentPosition
toPosition
The end position. |