Hi,
I am using RadControls for ASPNET AJAX Q3 2008. I'm utilising the Telerik.Web.UI.SpellChecker class to perform server-side spell checking on plain text as well as HTML strings.
I require the character offset (i.e. index) of any words failing spell check within the text string, and assumed from the documentation that the SpellCheckError.OffsetInText property would provide just what I needed (documentation below):
Telerik.Web.UI Namespace > SpellCheckError Class : OffsetInText Property
I am using RadControls for ASPNET AJAX Q3 2008. I'm utilising the Telerik.Web.UI.SpellChecker class to perform server-side spell checking on plain text as well as HTML strings.
I require the character offset (i.e. index) of any words failing spell check within the text string, and assumed from the documentation that the SpellCheckError.OffsetInText property would provide just what I needed (documentation below):
Telerik.Web.UI Namespace > SpellCheckError Class : OffsetInText Property
The offset in the source text. It is useful for
locating the original word and replacing it with one of the suggestions.
However this property returns the zero-based order of the mistaken word within the list of the words in the text.
E.g. for the string "Two misspled wordz" the offset property would be 1 (for the "misspled" SpellCheckError) and 2 (for the "wordz" SpellCheckError).
I notice that the actual character offset is within the SpellCheckError but it's not publicly accessible (SpellCheckError.badWord.Offset)
My questions:
1) Is there any way in which to access this property for the Q3 2008 version?
2) Is this property provided publicly (e.g. in the SpellCheckError class) in a subsequent release?
Regards
Michael
However this property returns the zero-based order of the mistaken word within the list of the words in the text.
E.g. for the string "Two misspled wordz" the offset property would be 1 (for the "misspled" SpellCheckError) and 2 (for the "wordz" SpellCheckError).
I notice that the actual character offset is within the SpellCheckError but it's not publicly accessible (SpellCheckError.badWord.Offset)
My questions:
1) Is there any way in which to access this property for the Q3 2008 version?
2) Is this property provided publicly (e.g. in the SpellCheckError class) in a subsequent release?
Regards
Michael