mobileFX WebKitX CEF3 ActiveX 4.x
WebKitXCEF3Lib ActiveX Control / WebKitXCEF3 Object / ReplaceText Method

Text to find in DOM nodes.

Text to replace with in DOM nodes.

If True it performs a case-insensitive search.

In This Topic
    ReplaceText Method
    In This Topic
    Description

    Replaces text in DOM nodes.

    Syntax
    Visual Basic
    Public Sub ReplaceText( _
       ByVal Find As String, _
       ByVal Replace As String, _
       ByVal IgnoreCase As Boolean _
    ) 
    Parameters
    Find

    Text to find in DOM nodes.

    Replace

    Text to replace with in DOM nodes.

    IgnoreCase

    If True it performs a case-insensitive search.

    Remarks

    Internally the text is searched and replaced over a Tree Walker.

    Example
    Private Sub mnuReplaceText_Click()
        On Error Resume Next
        WebKitX1.ReplaceText "fox", "cat", True
        Err.Clear
    End Sub
    private void menuItemReplaceText_Click(object sender, EventArgs e)
    {
        WebKitXCEF31.ReplaceText("fox", "cat", true);
    }
    See Also