## Replace(*string, string, string, string*) {#replace_16} Replaces all occurrences of a specified character string pattern with a replacement string in the input file. ```csharp public static int ......how to replace string in the document. ```csharp // There is a several...ways to replace string in the document: string doc = MyDir + "Footer...