ReplaceText(String,String) Method (OpenXmlDocumentElement)
Replaces all occurrences of specified string in
Text.
'Declaration
Public Function ReplaceText( _
ByVal As System.String, _
ByVal As System.String _
) As Boolean
public bool ReplaceText(
System.String ,
System.String
)
public: bool ReplaceText(
System.String ,
System.String
)
public:
bool ReplaceText(
System.String ,
System.String
)
Parameters
- oldValue
- A string to be replaced.
- newValue
- A string to replace all occurrences of .
Return Value
True if replace is performed; otherwise, false.
Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5