Version

ReplaceAllInstancesOfText Method

Finds and replaces all instances of the supplied text.
Syntax
'Declaration
 
Public Function ReplaceAllInstancesOfText( _
   ByVal sTextToFind As System.String, _
   Optional ByVal sNewText As System.String, _
   Optional ByVal bCaseSensitive As System.Boolean, _
   Optional ByVal bAllowWildCards As System.Boolean _
) As System.Integer
public System.int ReplaceAllInstancesOfText( 
   System.string sTextToFind,
   System.string sNewText,
   System.bool bCaseSensitive,
   System.bool bAllowWildCards
)
public: System.int ReplaceAllInstancesOfText( 
   System.string* sTextToFind,
   System.string* sNewText,
   System.bool bCaseSensitive,
   System.bool bAllowWildCards
) 

Parameters

sTextToFind
The text string to be found
sNewText
The new text string that will replace the instances of found text.
bCaseSensitive
Boolean value representing if the search criteria is case sensitive, default is true
bAllowWildCards
Boolean value representing if the search criteria will utilize wild cards, default is false
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also