combit List & Label 30 - .NET Help
combit.Reporting.Dom Namespace / ProjectBase Class / Replace Method / Replace(String,String) Method

The string to be replaced.

The string to replace all occurrences of oldValue.



Replace(String,String) Method

Replaces all occurrences of Parameter oldValue with Parameter newValue.

Syntax
'Declaration
 
Public Overloads Function Replace( _
   ByVal oldValue As String, _
   ByVal newValue As String _
) As Integer
 

Parameters

oldValue

The string to be replaced.

newValue

The string to replace all occurrences of oldValue.

Return Value

Count of replaced values.

Remarks

The event ReplaceHit is invoked by each hit in replacement operation.

Requirements

Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
.NET: .NET Framework 4.8, .NET 6, .NET 8, .NET 9

See Also