Version

ReplaceSubString Method

Replaces a substring within the original text with some new, replacement text.
Syntax
'Declaration
 
Public Shared Function ReplaceSubString( _
   ByVal originalText As String, _
   ByVal startingIndex As Integer, _
   ByVal selectionLength As Integer, _
   ByVal replacementText As String _
) As String
public static string ReplaceSubString( 
   string originalText,
   int startingIndex,
   int selectionLength,
   string replacementText
)

Parameters

originalText
The original string into which the new text will be inserted
startingIndex
The starting index at which to insert the new text.
selectionLength
The length of text to be replaced in the original string.
replacementText
The new text that will be inserted into the original string.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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