ODF .NET > Tutorial > Replace text

The example shows you how to open an OpenDocument text document and replace text. Replace searches the whole document, including tables, lists, sections, headers, footers, notes, annotations, text boxes and shapes, and returns the number of replaced occurrences. The paragraph, its style and all other content of the paragraph remain unchanged, even when an occurrence is split over several spans.

C# example
C# example - Replace several strings in one pass
C# example - Replace in the body only
VB example

Need help? Ask our developers: