Version

ReplaceNextInstanceOfText Method

Finds and replaces the next instance of the supplied text, starting from the current caret location and moves the caret to the start of that text.
Syntax
'Declaration
 
Public Sub ReplaceNextInstanceOfText( _
   ByVal sTextToFind As System.String, _
   Optional ByVal sNewText As System.String, _
   Optional ByVal iSkipCount As System.Integer, _
   Optional ByVal bCaseSensitive As System.Boolean, _
   Optional ByVal bAllowWildCards As System.Boolean _
) 
public void ReplaceNextInstanceOfText( 
   System.string sTextToFind,
   System.string sNewText,
   System.int iSkipCount,
   System.bool bCaseSensitive,
   System.bool bAllowWildCards
)
public: void ReplaceNextInstanceOfText( 
   System.string* sTextToFind,
   System.string* sNewText,
   System.int iSkipCount,
   System.bool bCaseSensitive,
   System.bool bAllowWildCards
) 

Parameters

sTextToFind
The text string to be found
sNewText
The new text string that will replace the found text.
iSkipCount
Integer number of instances that will be skipped, default is 0
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