ApiExamples.ExRange.ReplaceWithString C# (CSharp) Метод

ReplaceWithString() приватный Метод

private ReplaceWithString ( ) : void
Результат void
        public void ReplaceWithString()
        {
            //ExStart
            //ExFor:Range
            //ExId:RangesReplaceString
            //ExSummary:Shows how to replace all occurrences of word "sad" to "bad".
            Document doc = new Document(MyDir + "Document.doc");
            doc.Range.Replace("sad", "bad", false, true);
            //ExEnd
            doc.Save(MyDir + @"\Artifacts\ReplaceWithString.doc");
        }