Back to Devexpress

Presentation.ReplaceText(String, String, TextSearchOptions) Method

officefileapi-devexpress-dot-docs-dot-presentation-dot-presentation-dot-replacetext-x28-system-dot-string-system-dot-string-devexpress-dot-docs-dot-presentation-dot-textsearchoptions-x29.md

latest2.0 KB
Original Source

Presentation.ReplaceText(String, String, TextSearchOptions) Method

Replaces all occurrences of the specified text with new text throughout the presentation, including shapes, notes, and tables.

Namespace : DevExpress.Docs.Presentation

Assembly : DevExpress.Docs.Presentation.v25.2.dll

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public void ReplaceText(
    string oldText,
    string newText,
    TextSearchOptions options = null
)
vb
Public Sub ReplaceText(
    oldText As String,
    newText As String,
    options As TextSearchOptions = Nothing
)

Parameters

NameTypeDescription
oldTextString

The text to replace.

| | newText | String |

The new text to replace the old text.

|

Optional Parameters

NameTypeDefaultDescription
optionsTextSearchOptionsnull

Contains text search options.

|

Remarks

For more information, refer to the following help topic: DevExpress Presentation API: Search, Replace, Remove, and Highlight Text in a Slide or Presentation.

See Also

Presentation Class

Presentation Members

DevExpress.Docs.Presentation Namespace