Beispiel #1
0
        private void ReplaceOnCurrentCursorWith(NSRange misspelledWord, string word)
        {
            var start = _content.GetPosition(_content.BeginningOfDocument, misspelledWord.Location);
            var end   = _content.GetPosition(start, misspelledWord.Length);

            var textRange = _content.GetTextRange(start, end);

            _content.ReplaceText(textRange, word);

            MarkSpellingForCursorRange();
        }