• HOME
  • PRODUCTS
  • DEMOS
  • BUY
  • BLOG
  • FORUM
  • DOCUMENTATION
  • ABOUT
  • FREE EVALUATION
Search Results for

    Show / Hide Table of Contents

    Replace Method

    Replace(String, String)

    When implemented by a class, searches for the first occurrence of given text within the text content and if succeed replaces it by specified string.

    Declaration
    bool Replace(string text, string replaceWith)
    Parameters
    Type Name Description
    String text

    Text to find.

    String replaceWith

    Text to replace.

    Returns
    Type Description
    Boolean

    True if succeed; otherwise false.

    Replace(String, String, SearchOptions)

    When implemented by a class, searches for first occurrence given text within the text content with specified options and if succeed replaces it by specified string.

    Declaration
    bool Replace(string text, string replaceWith, SearchOptions options)
    Parameters
    Type Name Description
    String text

    Text to find.

    String replaceWith

    Text to replace.

    SearchOptions options

    Represents options to search text.

    Returns
    Type Description
    Boolean

    True if succeed; otherwise false.

    Replace(String, String, SearchOptions, Regex)

    When implemented by a class, searches for first occurrence given text within the text content with specified options using specified regular expression and if succeed replaces it by specified string.

    Declaration
    bool Replace(string text, string replaceWith, SearchOptions options, Regex expression)
    Parameters
    Type Name Description
    String text

    Text to find.

    String replaceWith

    Text to replace.

    SearchOptions options

    Represents options to search text.

    Regex expression

    Represents a regular expression to find text.

    Returns
    Type Description
    Boolean

    True if succeed; otherwise false.

    In This Article
    Back to top Copyright AlterNET Software Download PDF