Пример #1
0
        Boolean ICodeEditor.Replace(String findText, String replaceText, Boolean matchCase)
        {
            if (this.TextView.Selection.Count == 1)
            {
                Int32 start = this.TextView.Selection.ActiveSpan.Start;
                this.findLogic.MatchCase     = matchCase;
                this.findLogic.SearchString  = findText;
                this.findLogic.SearchReverse = false;
                TextSpan span = this.findLogic.FindNext(start, false);
                if ((span != null) && this.TextView.Selection.ActiveSpan.Equals(span))
                {
                    this.EditorCommands.ReplaceSelection(replaceText);
                }
            }
            ICodeEditor editor = this;

            return(editor.Find(findText, matchCase, false));
        }