phdesign.NppToolBucket.FindAndReplace.ReplaceAll C# (CSharp) Method

ReplaceAll() private method

private ReplaceAll ( string findText, string replaceText ) : int
findText string
replaceText string
return int
        private int ReplaceAll(string findText, string replaceText)
        {
            if (Settings.SearchIn == SearchInOptions.OpenDocuments)
            {
                var currentDocument = 0;
                var currentView = IsViewVisible((int)NppMsg.MAIN_VIEW) ? (int)NppMsg.MAIN_VIEW : (int)NppMsg.SUB_VIEW;
                Win32.SendMessage(PluginBase.nppData._nppHandle, NppMsg.NPPM_ACTIVATEDOC, currentView, currentDocument);
                _editor = Editor.GetActive();
                return ReplaceAll(findText, replaceText, currentDocument, currentView);
            }
            return ReplaceAll(findText, replaceText, -1, -1);
        }

Same methods

FindAndReplace::ReplaceAll ( string findText, string replaceText, int currentDocument, int currentView ) : int