Xceed Words for .NET v5.0 Documentation
Xceed.Document.NET Assembly / Xceed.Document.NET Namespace / Document Class / ReplaceText Method / ReplaceText(StringReplaceTextOptions) Method
The options that will be used when replacing the string with another string.


In This Topic
    ReplaceText(StringReplaceTextOptions) Method
    In This Topic
    Replaces all instances of a string with another string using the options set via the replaceTextOptions parameter.
    Syntax
    'Declaration
     
    Public Overloads Overrides Function ReplaceText( _
       ByVal replaceTextOptions As StringReplaceTextOptions _
    ) As Boolean
    'Usage
     
    Dim instance As Document
    Dim replaceTextOptions As StringReplaceTextOptions
    Dim value As Boolean
     
    value = instance.ReplaceText(replaceTextOptions)
    public override bool ReplaceText( 
       StringReplaceTextOptions replaceTextOptions
    )

    Parameters

    replaceTextOptions
    The options that will be used when replacing the string with another string.

    Return Value

    Returns true if at least one text replacement is done.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows, 11, 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