VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Office.OpenXml.Editor Namespace / OpenXmlDocumentElement Class / ReplaceText(String,String) Method
Syntax Requirements SeeAlso
In This Topic
    ReplaceText(String,String) Method (OpenXmlDocumentElement)
    In This Topic
    Replaces all occurrences of specified string in Text.
    Syntax
    'Declaration
    
    Public Function ReplaceText( _
    ByVal oldValue
    A string to be replaced.
    As System.String, _
    ByVal newValue
    A string to replace all occurrences of oldValue.
    As System.String _
    ) As Boolean
    public bool ReplaceText(
    System.String oldValue,
    System.String newValue
    )
    public: bool ReplaceText(
    System.String oldValue,
    System.String newValue
    )
    public:
    bool ReplaceText(
    System.String oldValue,
    System.String newValue
    )

    Parameters

    oldValue
    A string to be replaced.
    newValue
    A string to replace all occurrences of oldValue.

    Return Value

    True if replace is performed; otherwise, false.
    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also