private void CustomOpenAndSelectHandler(string absfilepath, ISyntaxEditorTextRange textrange) { m_gotoService.GotoFileAndHighlightRange(absfilepath, textrange.StartOffset, textrange.EndOffset); }
/// <summary> /// Replaces all text based on options in text range</summary> /// <param name="options">Find/replace options</param> /// <param name="textRange">Text range in which to replace text</param> /// <returns>Find/replace result set</returns> public ISyntaxEditorFindReplaceResultSet ReplaceAll(ISyntaxEditorFindReplaceOptions options, ISyntaxEditorTextRange textRange) { var results = Document.FindReplace.ReplaceAll((FindReplaceOptions) options, new TextRange(textRange.StartOffset, textRange.EndOffset)); return new SyntaxEditorFindReplaceResultSet(results); }