ODF .NET > Tutorial > Get all content elements

The example shows you how to use method GetContentElements. The GetContentElements method recursively retrieves all elements contained inside content of one element. All classes implement the IContentElement (like Document, Paragraph, Text, Table, List, ...) have GetContentElements method. It is different than Content property. The Content property contains "first level" elements.

C# example
VB example

Need help? Ask our developers: