menu

Document Processing

Interface ITextBodyItem - FileFormats API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface ITextBodyItem

    Represents text range functions

    Inherited Members
    IEntity.Clone()
    IEntity.Document
    IEntity.EntityType
    IEntity.IsComposite
    IEntity.NextSibling
    IEntity.Owner
    IEntity.PreviousSibling
    Namespace: Syncfusion.DocIO.DLS
    Assembly: Syncfusion.DocIO.Base.dll
    Syntax
    public interface ITextBodyItem : IEntity

    Methods

    Replace(String, String, Boolean, Boolean)

    Replaces all entries of given string with replace string, taking into consideration case sensitive and whole word options.

    Declaration
    int Replace(string given, string replace, bool caseSensitive, bool wholeWord)
    Parameters
    Type Name Description
    System.String given

    The string represents the text to be found.

    System.String replace

    The string specifies the text to replace.

    System.Boolean caseSensitive

    True to consider the case, otherwise false.

    System.Boolean wholeWord

    True to consider the text as whole word, otherwise false.

    Returns
    Type Description
    System.Int32

    The integer that represents the count of the replacements made.

    Replace(Regex, TextSelection)

    Replaces the regular expression with a text selection.

    Declaration
    int Replace(Regex pattern, TextSelection textSelection)
    Parameters
    Type Name Description
    System.Text.RegularExpressions.Regex pattern

    The System.Text.RegularExpressions.Regex used to find the text.

    TextSelection textSelection

    The TextSelection which specifies the text to replace.

    Returns
    Type Description
    System.Int32

    The integer that represents the count of the replacements made.

    Replace(Regex, String)

    Replaces all entries of given regular expression with replace string.

    Declaration
    int Replace(Regex pattern, string replace)
    Parameters
    Type Name Description
    System.Text.RegularExpressions.Regex pattern

    The System.Text.RegularExpressions.Regex used to find the text.

    System.String replace

    The string specifies the text to replace.

    Returns
    Type Description
    System.Int32

    The integer that represents the count of the replacements made.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved