Interface ITextBodyItem
Represents text range functions
Inherited Members
Namespace: Syncfusion.DocIO.DLS
Assembly: Syncfusion.DocIO.Portable.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 |
System.Boolean | wholeWord | True to consider the text as whole word, otherwise |
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. |