Method of IApplication
Replace text in a way similar to interactive search
Application.ReplaceEx(strWhat, strTo, nType, nAction, pSearchInStyle, nResult, dwFlags, dwFlagsEx);
Application.ReplaceEx strWhat, strTo, nType, nAction, pSearchInStyle, nResult, dwFlags, dwFlagsEx
HRESULT hr = Application.ReplaceEx(strWhat, strTo, nType, nAction, pSearchInStyle, nResult, dwFlags, dwFlagsEx);