Word .NET Class Library
Show/Hide TOC

# WordDocumentReplace(String, Run, ReplaceIn) Method

Replaces all occurrences of the specified text with run object.

## Definition

Namespace: Independentsoft.Office.Word
Assembly: Independentsoft.Office.Word (in Independentsoft.Office.Word.dll) Version: 3.0.460.1+37fe42d8e65847775742df0a70fdb403ab6fa65f
C#

    public void Replace(
    	string text,
    	Run run,
    	ReplaceIn replaceIn
    )

VB

    Public Sub Replace (
    	text As String,
    	run As Run,
    	replaceIn As ReplaceIn
    )

#### Parameters

text String
  A strings to replace.
run Run
  A Run object that replaces text.
replaceIn ReplaceIn
  Replace scope.

## See Also

#### Reference

WordDocument Class
Replace Overload
Independentsoft.Office.Word Namespace